mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 22:54:01 +02:00
Don't add unread mentions in channels.
This commit is contained in:
parent
7f1bc4635a
commit
b930ac7bf9
1 changed files with 3 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue