From 451056d2abbfe63c123cfd8e68505fba8643f8e0 Mon Sep 17 00:00:00 2001 From: John Preston Date: Sat, 31 Aug 2019 14:32:15 +0300 Subject: [PATCH] Track reminder unread status without cheating. --- Telegram/SourceFiles/history/history_item.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Telegram/SourceFiles/history/history_item.cpp b/Telegram/SourceFiles/history/history_item.cpp index 69b842b328..22dc3712d5 100644 --- a/Telegram/SourceFiles/history/history_item.cpp +++ b/Telegram/SourceFiles/history/history_item.cpp @@ -721,8 +721,8 @@ bool HistoryItem::needCheck() const { } bool HistoryItem::unread() const { - // Messages from myself are always read. - if (history()->peer->isSelf()) { + // Messages from myself are always read, unless scheduled. + if (history()->peer->isSelf() && !isFromScheduled()) { return false; }