From b930ac7bf922a9addba2bd7cccea96bee44d59cf Mon Sep 17 00:00:00 2001 From: John Preston Date: Sat, 3 Mar 2018 16:09:31 +0300 Subject: [PATCH] Don't add unread mentions in channels. --- Telegram/SourceFiles/history/history.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Telegram/SourceFiles/history/history.cpp b/Telegram/SourceFiles/history/history.cpp index 2e84639b1b..5489bc31f1 100644 --- a/Telegram/SourceFiles/history/history.cpp +++ b/Telegram/SourceFiles/history/history.cpp @@ -830,6 +830,9 @@ void History::setUnreadMentionsCount(int count) { bool History::addToUnreadMentions( MsgId msgId, UnreadMentionType type) { + if (peer->isChannel() && !peer->isMegagroup()) { + return false; + } auto allLoaded = _unreadMentionsCount ? (_unreadMentions.size() >= *_unreadMentionsCount) : false;