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

Use sound in native notifications on macOS.

This commit is contained in:
John Preston
2025-01-21 14:24:43 +04:00
parent 37c7b0c6d1
commit aa0c56876c
6 changed files with 70 additions and 35 deletions

View File

@@ -399,6 +399,7 @@ public:
return ManagerType::Native;
}
using NotificationSound = Media::Audio::LocalSound;
struct NotificationInfo {
not_null<PeerData*> peer;
MsgId topicRootId = 0;
@@ -406,7 +407,7 @@ public:
QString title;
QString subtitle;
QString message;
Fn<QString()> soundPath;
Fn<NotificationSound()> sound;
DisplayOptions options;
};