Skip to content

Commit 4612910

Browse files
committed
Rename notification tones to notification sounds in API,
1 parent 3378131 commit 4612910

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

td/generate/scheme/td_api.tl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -925,19 +925,19 @@ notificationSettingsScopeChannelChats = NotificationSettingsScope;
925925

926926
//@description Contains information about notification settings for a chat
927927
//@use_default_mute_for If true, mute_for is ignored and the value for the relevant type of chat is used instead @mute_for Time left before notifications will be unmuted, in seconds
928-
//@use_default_sound If true, the value for the relevant type of chat is used instead of tone_id @tone_id Identifier of the notification tone to be played; 0 if sound is disabled
928+
//@use_default_sound If true, the value for the relevant type of chat is used instead of sound_id @sound_id Identifier of the notification sound to be played; 0 if sound is disabled
929929
//@use_default_show_preview If true, show_preview is ignored and the value for the relevant type of chat is used instead @show_preview True, if message content must be displayed in notifications
930930
//@use_default_disable_pinned_message_notifications If true, disable_pinned_message_notifications is ignored and the value for the relevant type of chat is used instead @disable_pinned_message_notifications If true, notifications for incoming pinned messages will be created as for an ordinary unread message
931931
//@use_default_disable_mention_notifications If true, disable_mention_notifications is ignored and the value for the relevant type of chat is used instead @disable_mention_notifications If true, notifications for messages with mentions will be created as for an ordinary unread message
932-
chatNotificationSettings use_default_mute_for:Bool mute_for:int32 use_default_sound:Bool tone_id:int64 use_default_show_preview:Bool show_preview:Bool use_default_disable_pinned_message_notifications:Bool disable_pinned_message_notifications:Bool use_default_disable_mention_notifications:Bool disable_mention_notifications:Bool = ChatNotificationSettings;
932+
chatNotificationSettings use_default_mute_for:Bool mute_for:int32 use_default_sound:Bool sound_id:int64 use_default_show_preview:Bool show_preview:Bool use_default_disable_pinned_message_notifications:Bool disable_pinned_message_notifications:Bool use_default_disable_mention_notifications:Bool disable_mention_notifications:Bool = ChatNotificationSettings;
933933

934934
//@description Contains information about notification settings for several chats
935935
//@mute_for Time left before notifications will be unmuted, in seconds
936-
//@tone_id Identifier of the notification tone to be played; 0 if sound is disabled
936+
//@sound_id Identifier of the notification sound to be played; 0 if sound is disabled
937937
//@show_preview True, if message content must be displayed in notifications
938938
//@disable_pinned_message_notifications True, if notifications for incoming pinned messages will be created as for an ordinary unread message
939939
//@disable_mention_notifications True, if notifications for messages with mentions will be created as for an ordinary unread message
940-
scopeNotificationSettings mute_for:int32 tone_id:int64 show_preview:Bool disable_pinned_message_notifications:Bool disable_mention_notifications:Bool = ScopeNotificationSettings;
940+
scopeNotificationSettings mute_for:int32 sound_id:int64 show_preview:Bool disable_pinned_message_notifications:Bool disable_mention_notifications:Bool = ScopeNotificationSettings;
941941

942942

943943
//@description Contains information about a message draft

td/telegram/NotificationSettings.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ Result<DialogNotificationSettings> get_dialog_notification_settings(
137137
notification_settings->use_default_mute_for_ ? 0 : get_mute_until(notification_settings->mute_for_);
138138
return DialogNotificationSettings(
139139
notification_settings->use_default_mute_for_, mute_until,
140-
get_notification_sound(notification_settings->use_default_sound_, notification_settings->tone_id_),
140+
get_notification_sound(notification_settings->use_default_sound_, notification_settings->sound_id_),
141141
notification_settings->use_default_show_preview_, notification_settings->show_preview_, old_silent_send_message,
142142
notification_settings->use_default_disable_pinned_message_notifications_,
143143
notification_settings->disable_pinned_message_notifications_,
@@ -152,7 +152,7 @@ Result<ScopeNotificationSettings> get_scope_notification_settings(
152152
}
153153

154154
auto mute_until = get_mute_until(notification_settings->mute_for_);
155-
return ScopeNotificationSettings(mute_until, get_notification_sound(false, notification_settings->tone_id_),
155+
return ScopeNotificationSettings(mute_until, get_notification_sound(false, notification_settings->sound_id_),
156156
notification_settings->show_preview_,
157157
notification_settings->disable_pinned_message_notifications_,
158158
notification_settings->disable_mention_notifications_);

0 commit comments

Comments
 (0)