Rename notification tones to notification sounds in API,
This commit is contained in:
parent
3378131467
commit
4612910a14
@ -925,19 +925,19 @@ notificationSettingsScopeChannelChats = NotificationSettingsScope;
|
||||
|
||||
//@description Contains information about notification settings for a chat
|
||||
//@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
|
||||
//@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
|
||||
//@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
|
||||
//@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
|
||||
//@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
|
||||
//@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
|
||||
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;
|
||||
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;
|
||||
|
||||
//@description Contains information about notification settings for several chats
|
||||
//@mute_for Time left before notifications will be unmuted, in seconds
|
||||
//@tone_id Identifier of the notification tone to be played; 0 if sound is disabled
|
||||
//@sound_id Identifier of the notification sound to be played; 0 if sound is disabled
|
||||
//@show_preview True, if message content must be displayed in notifications
|
||||
//@disable_pinned_message_notifications True, if notifications for incoming pinned messages will be created as for an ordinary unread message
|
||||
//@disable_mention_notifications True, if notifications for messages with mentions will be created as for an ordinary unread message
|
||||
scopeNotificationSettings mute_for:int32 tone_id:int64 show_preview:Bool disable_pinned_message_notifications:Bool disable_mention_notifications:Bool = ScopeNotificationSettings;
|
||||
scopeNotificationSettings mute_for:int32 sound_id:int64 show_preview:Bool disable_pinned_message_notifications:Bool disable_mention_notifications:Bool = ScopeNotificationSettings;
|
||||
|
||||
|
||||
//@description Contains information about a message draft
|
||||
|
@ -137,7 +137,7 @@ Result<DialogNotificationSettings> get_dialog_notification_settings(
|
||||
notification_settings->use_default_mute_for_ ? 0 : get_mute_until(notification_settings->mute_for_);
|
||||
return DialogNotificationSettings(
|
||||
notification_settings->use_default_mute_for_, mute_until,
|
||||
get_notification_sound(notification_settings->use_default_sound_, notification_settings->tone_id_),
|
||||
get_notification_sound(notification_settings->use_default_sound_, notification_settings->sound_id_),
|
||||
notification_settings->use_default_show_preview_, notification_settings->show_preview_, old_silent_send_message,
|
||||
notification_settings->use_default_disable_pinned_message_notifications_,
|
||||
notification_settings->disable_pinned_message_notifications_,
|
||||
@ -152,7 +152,7 @@ Result<ScopeNotificationSettings> get_scope_notification_settings(
|
||||
}
|
||||
|
||||
auto mute_until = get_mute_until(notification_settings->mute_for_);
|
||||
return ScopeNotificationSettings(mute_until, get_notification_sound(false, notification_settings->tone_id_),
|
||||
return ScopeNotificationSettings(mute_until, get_notification_sound(false, notification_settings->sound_id_),
|
||||
notification_settings->show_preview_,
|
||||
notification_settings->disable_pinned_message_notifications_,
|
||||
notification_settings->disable_mention_notifications_);
|
||||
|
Loading…
Reference in New Issue
Block a user