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:
@@ -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);
|
||||
}
|
||||
});
|
||||
|
Reference in New Issue
Block a user