mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-30 05:58:38 +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 {
|
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…
x
Reference in New Issue
Block a user