mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Fixed mouse track on right button for bots when there is unread badge.
This commit is contained in:
parent
a6030d708d
commit
56d6c4eb30
1 changed files with 7 additions and 2 deletions
|
@ -130,7 +130,9 @@ constexpr auto kPreviewPostsLimit = 3;
|
||||||
if (const auto history = row->key().history()) {
|
if (const auto history = row->key().history()) {
|
||||||
if (const auto user = history->peer->asUser()) {
|
if (const auto user = history->peer->asUser()) {
|
||||||
if (user->botInfo && user->botInfo->hasMainApp) {
|
if (user->botInfo && user->botInfo->hasMainApp) {
|
||||||
return user;
|
if (!history->unreadCount() && !history->unreadMark()) {
|
||||||
|
return user;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1947,7 +1949,10 @@ const std::vector<Key> &InnerWidget::pinnedChatsOrder() const {
|
||||||
}
|
}
|
||||||
|
|
||||||
void InnerWidget::checkReorderPinnedStart(QPoint localPosition) {
|
void InnerWidget::checkReorderPinnedStart(QPoint localPosition) {
|
||||||
if (!_pressed || _dragging || _state != WidgetState::Default) {
|
if (!_pressed
|
||||||
|
|| _dragging
|
||||||
|
|| (_state != WidgetState::Default)
|
||||||
|
|| _pressedBotApp) {
|
||||||
return;
|
return;
|
||||||
} else if (qAbs(localPosition.y() - _dragStart.y())
|
} else if (qAbs(localPosition.y() - _dragStart.y())
|
||||||
< style::ConvertScale(kStartReorderThreshold)) {
|
< style::ConvertScale(kStartReorderThreshold)) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue