2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-30 22:16:14 +00:00

Play ringtones on click in select box.

This commit is contained in:
John Preston
2022-04-07 11:34:29 +04:00
parent f5164fe3e4
commit d35b8f82a3
7 changed files with 107 additions and 23 deletions

View File

@@ -15,6 +15,7 @@ struct ItemNotification;
enum class ItemNotificationType;
namespace Data {
class Session;
class CloudImageView;
} // namespace Data
@@ -99,6 +100,8 @@ public:
[[nodiscard]] rpl::producer<ChangeType> settingsChanged() const;
void notifySettingsChanged(ChangeType type);
void playSound(not_null<Main::Session*> session, DocumentId id);
[[nodiscard]] rpl::lifetime &lifetime() {
return _lifetime;
}
@@ -159,7 +162,7 @@ private:
void showGrouped();
void ensureSoundCreated();
[[nodiscard]] not_null<Media::Audio::Track*> lookupSound(
not_null<PeerData*> peer,
not_null<Data::Session*> owner,
DocumentId id);
base::flat_map<