diff --git a/Telegram/SourceFiles/history/history.cpp b/Telegram/SourceFiles/history/history.cpp index 5617a09914334..fe5a1a41e0fd1 100644 --- a/Telegram/SourceFiles/history/history.cpp +++ b/Telegram/SourceFiles/history/history.cpp @@ -1262,7 +1262,15 @@ void History::newItemAdded(not_null 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); }