diff --git a/webapp/channels/src/components/user_settings/notifications/user_settings_notifications.tsx b/webapp/channels/src/components/user_settings/notifications/user_settings_notifications.tsx index 74eb42b307..d6305c1bb7 100644 --- a/webapp/channels/src/components/user_settings/notifications/user_settings_notifications.tsx +++ b/webapp/channels/src/components/user_settings/notifications/user_settings_notifications.tsx @@ -231,7 +231,7 @@ class NotificationsTab extends React.PureComponent { } handleSubmit = async () => { - const data: UserNotifyProps = {} as UserNotifyProps; + const data: UserNotifyProps = {...this.props.user.notify_props}; data.email = this.state.enableEmail; data.desktop_sound = this.state.desktopSound; data.calls_desktop_sound = this.state.callsDesktopSound; diff --git a/webapp/platform/types/src/users.ts b/webapp/platform/types/src/users.ts index ef60cc8ea2..1f281fbac6 100644 --- a/webapp/platform/types/src/users.ts +++ b/webapp/platform/types/src/users.ts @@ -28,6 +28,8 @@ export type UserNotifyProps = { push_threads?: 'default' | 'all' | 'mention' | 'none'; auto_responder_active?: 'true' | 'false'; auto_responder_message?: string; + calls_mobile_sound?: 'true' | 'false' | ''; + calls_mobile_notification_sound?: 'Dynamic' | 'Calm' | 'Urgent' | 'Cheerful' | ''; }; export type UserProfile = {