mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
parent
a02c01cce7
commit
2b7b278b52
1 changed files with 3 additions and 1 deletions
|
@ -499,7 +499,9 @@ bool NotifySettings::silentPosts(not_null<const PeerData*> peer) const {
|
||||||
}
|
}
|
||||||
|
|
||||||
NotifySound NotifySettings::sound(not_null<const PeerData*> peer) const {
|
NotifySound NotifySettings::sound(not_null<const PeerData*> peer) const {
|
||||||
if (const auto sound = peer->notify().sound()) {
|
// Explicitly ignore a notify sound for Saved Messages
|
||||||
|
// to follow the global notify sound.
|
||||||
|
if (const auto sound = peer->notify().sound(); !peer->isSelf() && sound) {
|
||||||
return *sound;
|
return *sound;
|
||||||
} else if (const auto sound = defaultSettings(peer).sound()) {
|
} else if (const auto sound = defaultSettings(peer).sound()) {
|
||||||
return *sound;
|
return *sound;
|
||||||
|
|
Loading…
Add table
Reference in a new issue