2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Allow sound-without-toast again on macOS/Linux.

This commit is contained in:
John Preston
2025-01-24 22:23:21 +04:00
parent 5e2eda6af3
commit 691a0acdab
2 changed files with 7 additions and 2 deletions

View File

@@ -968,7 +968,9 @@ bool Manager::doSkipToast() const {
}
void Manager::doMaybePlaySound(Fn<void()> playSound) {
if (UseGNotification() || !HasCapability("sound")) {
if (UseGNotification()
|| !HasCapability("sound")
|| !Core::App().settings().desktopNotify()) {
_private->invokeIfNotInhibited(std::move(playSound));
}
}