2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 14:38:15 +00:00

Enforce changelog message visibility.

This commit is contained in:
John Preston
2019-04-22 21:44:08 +04:00
parent ceec71d3e6
commit 40532e32ab
3 changed files with 21 additions and 15 deletions

View File

@@ -2554,20 +2554,8 @@ bool History::clearUnreadOnClientSide() const {
return false;
}
bool History::skipUnreadUpdateForClientSideUnread() const {
if (peer->id != PeerData::kServiceNotificationsId) {
return false;
} else if (!_unreadCount || !*_unreadCount) {
return false;
} else if (!_lastMessage || IsServerMsgId((*_lastMessage)->id)) {
return false;
}
return true;
}
bool History::skipUnreadUpdate() const {
return skipUnreadUpdateForClientSideUnread()
|| clearUnreadOnClientSide();
return clearUnreadOnClientSide();
}
void History::applyDialogFields(