mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-09-01 15:05:56 +00:00
Don't add unread mentions in channels.
This commit is contained in:
@@ -830,6 +830,9 @@ void History::setUnreadMentionsCount(int count) {
|
|||||||
bool History::addToUnreadMentions(
|
bool History::addToUnreadMentions(
|
||||||
MsgId msgId,
|
MsgId msgId,
|
||||||
UnreadMentionType type) {
|
UnreadMentionType type) {
|
||||||
|
if (peer->isChannel() && !peer->isMegagroup()) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
auto allLoaded = _unreadMentionsCount
|
auto allLoaded = _unreadMentionsCount
|
||||||
? (_unreadMentions.size() >= *_unreadMentionsCount)
|
? (_unreadMentions.size() >= *_unreadMentionsCount)
|
||||||
: false;
|
: false;
|
||||||
|
Reference in New Issue
Block a user