allow blank, will be used on mobile to default to desktop setting

This commit is contained in:
Christopher Poile 2024-05-30 17:31:28 -04:00
parent e983d7b8f4
commit 56e16e887f
No known key found for this signature in database
GPG Key ID: 9A44D32A3E15A411
2 changed files with 4 additions and 4 deletions

View File

@ -87,10 +87,10 @@ function getDefaultStateFromProps(props: Props): State {
let emailThreads: UserNotifyProps['email_threads'] = NotificationLevels.ALL;
let sound: UserNotifyProps['desktop_sound'] = 'true';
let callsSound: UserNotifyProps['calls_desktop_sound'] = 'true';
let callsMobileSound: UserNotifyProps['calls_mobile_sound'] = 'true';
let callsMobileSound: UserNotifyProps['calls_mobile_sound'] = '';
let desktopNotificationSound: UserNotifyProps['desktop_notification_sound'] = 'Bing';
let callsNotificationSound: UserNotifyProps['calls_notification_sound'] = 'Calm';
let callsMobileNotificationSound: UserNotifyProps['calls_mobile_notification_sound'] = 'Calm';
let callsMobileNotificationSound: UserNotifyProps['calls_mobile_notification_sound'] = '';
let comments: UserNotifyProps['comments'] = 'never';
let enableEmail: UserNotifyProps['email'] = 'true';
let pushActivity: UserNotifyProps['push'] = NotificationLevels.MENTION;

View File

@ -12,7 +12,7 @@ export type UserNotifyProps = {
desktop: 'default' | 'all' | 'mention' | 'none';
desktop_sound: 'true' | 'false';
calls_desktop_sound: 'true' | 'false';
calls_mobile_sound: 'true' | 'false';
calls_mobile_sound: 'true' | 'false' | '';
email: 'true' | 'false';
mark_unread: 'all' | 'mention';
push: 'default' | 'all' | 'mention' | 'none';
@ -24,7 +24,7 @@ export type UserNotifyProps = {
highlight_keys: string;
desktop_notification_sound?: 'Bing' | 'Crackle' | 'Down' | 'Hello' | 'Ripple' | 'Upstairs';
calls_notification_sound?: 'Dynamic' | 'Calm' | 'Urgent' | 'Cheerful';
calls_mobile_notification_sound?: 'Dynamic' | 'Calm' | 'Urgent' | 'Cheerful';
calls_mobile_notification_sound?: 'Dynamic' | 'Calm' | 'Urgent' | 'Cheerful' | '';
desktop_threads?: 'default' | 'all' | 'mention' | 'none';
email_threads?: 'default' | 'all' | 'mention' | 'none';
push_threads?: 'default' | 'all' | 'mention' | 'none';