Don't add unread mentions in channels.

This commit is contained in:
John Preston 2018-03-03 16:09:31 +03:00
parent 7f1bc4635a
commit b930ac7bf9

View File

@ -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;