mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-29 05:37:45 +00:00
parent
a02c01cce7
commit
2b7b278b52
@ -499,7 +499,9 @@ bool NotifySettings::silentPosts(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;
|
||||
} else if (const auto sound = defaultSettings(peer).sound()) {
|
||||
return *sound;
|
||||
|
Loading…
x
Reference in New Issue
Block a user