2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Request common notify settings when needed.

If user / group has default notify settings we need common user
or common group notify settings to display the badge properly.
This commit is contained in:
John Preston
2018-06-06 22:56:35 +03:00
parent d6a00523a8
commit 866c5e9b7b
6 changed files with 24 additions and 11 deletions

View File

@@ -1692,12 +1692,9 @@ void Session::applyNotifySetting(
App::enumerateChatsChannels([&](not_null<PeerData*> peer) {
if (!peer->notifySettingsUnknown()
&& ((!peer->notifyMuteUntil()
&& _defaultUserNotifySettings.muteUntil())
&& _defaultChatNotifySettings.muteUntil())
|| (!peer->notifySilentPosts()
&& _defaultUserNotifySettings.silentPosts()))) {
if (!peer->notifyMuteUntil()) {
int a = 0;
}
&& _defaultChatNotifySettings.silentPosts()))) {
updateNotifySettingsLocal(peer);
}
});