mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-09-02 15:45:12 +00:00
@@ -1262,7 +1262,15 @@ void History::newItemAdded(not_null<HistoryItem*> item) {
|
|||||||
Core::App().notifications().schedule(notification);
|
Core::App().notifications().schedule(notification);
|
||||||
}
|
}
|
||||||
if (item->out()) {
|
if (item->out()) {
|
||||||
|
if (item->isFromScheduled() && unreadCountRefreshNeeded(item->id)) {
|
||||||
|
if (unreadCountKnown()) {
|
||||||
|
setUnreadCount(unreadCount() + 1);
|
||||||
|
} else if (!isForum()) {
|
||||||
|
owner().histories().requestDialogEntry(this);
|
||||||
|
}
|
||||||
|
} else {
|
||||||
destroyUnreadBar();
|
destroyUnreadBar();
|
||||||
|
}
|
||||||
if (!item->unread(this)) {
|
if (!item->unread(this)) {
|
||||||
outboxRead(item);
|
outboxRead(item);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user