Fix default broadcast notification settings.

This commit is contained in:
John Preston 2019-06-04 16:40:24 +03:00
parent 5be9ce0cf0
commit 2f963d7f12
1 changed files with 6 additions and 2 deletions

View File

@ -1847,14 +1847,18 @@ NotifySettings &Session::defaultNotifySettings(
not_null<const PeerData*> peer) {
return peer->isUser()
? _defaultUserNotifySettings
: _defaultChatNotifySettings;
: (peer->isChat() || peer->isMegagroup())
? _defaultChatNotifySettings
: _defaultBroadcastNotifySettings;
}
const NotifySettings &Session::defaultNotifySettings(
not_null<const PeerData*> peer) const {
return peer->isUser()
? _defaultUserNotifySettings
: _defaultChatNotifySettings;
: (peer->isChat() || peer->isMegagroup())
? _defaultChatNotifySettings
: _defaultBroadcastNotifySettings;
}
void Session::updateNotifySettingsLocal(not_null<PeerData*> peer) {