mirror of https://github.com/procxx/kepka.git
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(
|
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;
|
||||||
|
|
Loading…
Reference in New Issue