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

Added public api for sound configuration to data notify settings.

This commit is contained in:
23rd
2022-04-05 00:10:15 +03:00
parent 55864edb67
commit a0b88e8f8b
8 changed files with 37 additions and 40 deletions

View File

@@ -195,8 +195,8 @@ public:
bool notifyChange(
std::optional<int> muteForSeconds,
std::optional<bool> silentPosts,
std::optional<bool> soundIsNone) {
return _notify.change(muteForSeconds, silentPosts, soundIsNone);
std::optional<Data::NotifySound> sound) {
return _notify.change(muteForSeconds, silentPosts, sound);
}
[[nodiscard]] bool notifySettingsUnknown() const {
return _notify.settingsUnknown();
@@ -204,8 +204,8 @@ public:
[[nodiscard]] std::optional<bool> notifySilentPosts() const {
return _notify.silentPosts();
}
[[nodiscard]] std::optional<bool> notifySoundIsNone() const {
return _notify.soundIsNone();
[[nodiscard]] std::optional<Data::NotifySound> notifySound() const {
return _notify.sound();
}
[[nodiscard]] MTPinputPeerNotifySettings notifySerialize() const {
return _notify.serialize();