mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-02-06 15:24:26 +00:00
Don't add unread mentions in channels.
This commit is contained in:
parent
7f1bc4635a
commit
b930ac7bf9
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user