mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-16 14:17:12 +02:00
parent
b23420f775
commit
f8c396e2cf
1 changed files with 9 additions and 1 deletions
|
@ -1262,7 +1262,15 @@ void History::newItemAdded(not_null<HistoryItem*> item) {
|
|||
Core::App().notifications().schedule(notification);
|
||||
}
|
||||
if (item->out()) {
|
||||
destroyUnreadBar();
|
||||
if (item->isFromScheduled() && unreadCountRefreshNeeded(item->id)) {
|
||||
if (unreadCountKnown()) {
|
||||
setUnreadCount(unreadCount() + 1);
|
||||
} else if (!isForum()) {
|
||||
owner().histories().requestDialogEntry(this);
|
||||
}
|
||||
} else {
|
||||
destroyUnreadBar();
|
||||
}
|
||||
if (!item->unread(this)) {
|
||||
outboxRead(item);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue