mirror of
https://github.com/vale981/tdesktop
synced 2025-03-06 02:01:40 -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) {
|
not_null<const PeerData*> peer) {
|
||||||
return peer->isUser()
|
return peer->isUser()
|
||||||
? _defaultUserNotifySettings
|
? _defaultUserNotifySettings
|
||||||
: _defaultChatNotifySettings;
|
: (peer->isChat() || peer->isMegagroup())
|
||||||
|
? _defaultChatNotifySettings
|
||||||
|
: _defaultBroadcastNotifySettings;
|
||||||
}
|
}
|
||||||
|
|
||||||
const NotifySettings &Session::defaultNotifySettings(
|
const NotifySettings &Session::defaultNotifySettings(
|
||||||
not_null<const PeerData*> peer) const {
|
not_null<const PeerData*> peer) const {
|
||||||
return peer->isUser()
|
return peer->isUser()
|
||||||
? _defaultUserNotifySettings
|
? _defaultUserNotifySettings
|
||||||
: _defaultChatNotifySettings;
|
: (peer->isChat() || peer->isMegagroup())
|
||||||
|
? _defaultChatNotifySettings
|
||||||
|
: _defaultBroadcastNotifySettings;
|
||||||
}
|
}
|
||||||
|
|
||||||
void Session::updateNotifySettingsLocal(not_null<PeerData*> peer) {
|
void Session::updateNotifySettingsLocal(not_null<PeerData*> peer) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue