mirror of
https://github.com/vale981/tdesktop
synced 2025-03-05 09:41:41 -05:00
Fix default broadcast notification settings.
This commit is contained in:
parent
5be9ce0cf0
commit
2f963d7f12
1 changed files with 6 additions and 2 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Reference in a new issue