2021-08-27 15:46:23 +02:00
|
|
|
export type UserSettingsType = {
|
2021-07-28 16:00:58 +02:00
|
|
|
color_scheme: number;
|
2021-08-02 00:00:40 +02:00
|
|
|
default_language: string;
|
|
|
|
default_view: string;
|
|
|
|
desktop_icon_count_display: number;
|
|
|
|
demote_inactive_streams: number;
|
|
|
|
dense_mode: boolean;
|
|
|
|
email_notifications_batching_period_seconds: number;
|
|
|
|
emojiset: string;
|
2021-07-28 16:00:58 +02:00
|
|
|
enable_desktop_notifications: boolean;
|
2021-08-02 00:00:40 +02:00
|
|
|
enable_digest_emails: boolean;
|
|
|
|
enable_drafts_synchronization: boolean;
|
|
|
|
enable_login_emails: boolean;
|
|
|
|
enable_marketing_emails: boolean;
|
2021-07-28 16:00:58 +02:00
|
|
|
enable_offline_push_notifications: boolean;
|
|
|
|
enable_offline_email_notifications: boolean;
|
2021-08-02 00:00:40 +02:00
|
|
|
enable_online_push_notifications: boolean;
|
2021-07-28 16:00:58 +02:00
|
|
|
enable_sounds: boolean;
|
|
|
|
enable_stream_audible_notifications: boolean;
|
|
|
|
enable_stream_desktop_notifications: boolean;
|
|
|
|
enable_stream_email_notifications: boolean;
|
|
|
|
enable_stream_push_notifications: boolean;
|
2021-08-02 00:00:40 +02:00
|
|
|
enter_sends: boolean;
|
2021-10-25 19:17:19 +02:00
|
|
|
escape_navigates_to_default_view: boolean;
|
2021-08-02 00:00:40 +02:00
|
|
|
fluid_layout_width: boolean;
|
|
|
|
high_contrast_mode: boolean;
|
|
|
|
left_side_userlist: boolean;
|
|
|
|
message_content_in_email_notifications: boolean;
|
|
|
|
notification_sound: string;
|
|
|
|
pm_content_in_desktop_notifications: boolean;
|
|
|
|
presence_enabled: boolean;
|
|
|
|
realm_name_in_notifications: boolean;
|
|
|
|
starred_message_counts: boolean;
|
|
|
|
translate_emoticons: boolean;
|
2021-07-28 16:00:58 +02:00
|
|
|
twenty_four_hour_time: boolean;
|
|
|
|
wildcard_mentions_notify: boolean;
|
2021-10-03 08:36:36 +02:00
|
|
|
send_stream_typing_notifications: boolean;
|
|
|
|
send_private_typing_notifications: boolean;
|
2021-10-03 08:53:35 +02:00
|
|
|
send_read_receipts: boolean;
|
2021-07-28 16:00:58 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
export let user_settings = {} as UserSettingsType;
|
|
|
|
|
|
|
|
export function initialize_user_settings(params: Record<string, UserSettingsType>): void {
|
|
|
|
user_settings = params.user_settings;
|
|
|
|
}
|