|
|
@ -18,7 +18,7 @@ import { copy, setDeepProperty, validateInitObject } from '../../helpers/object' |
|
|
|
import App from '../../config/app'; |
|
|
|
import App from '../../config/app'; |
|
|
|
import DEBUG, { MOUNT_CLASS_TO } from '../../config/debug'; |
|
|
|
import DEBUG, { MOUNT_CLASS_TO } from '../../config/debug'; |
|
|
|
import AppStorage from '../storage'; |
|
|
|
import AppStorage from '../storage'; |
|
|
|
import { AutoDownloadSettings, Chat } from '../../layer'; |
|
|
|
import { AutoDownloadSettings, Chat, NotifyPeer, PeerNotifySettings } from '../../layer'; |
|
|
|
import { IS_MOBILE } from '../../environment/userAgent'; |
|
|
|
import { IS_MOBILE } from '../../environment/userAgent'; |
|
|
|
import DATABASE_STATE from '../../config/databases/state'; |
|
|
|
import DATABASE_STATE from '../../config/databases/state'; |
|
|
|
import sessionStorage from '../sessionStorage'; |
|
|
|
import sessionStorage from '../sessionStorage'; |
|
|
@ -114,7 +114,8 @@ export type State = { |
|
|
|
}, |
|
|
|
}, |
|
|
|
keepSigned: boolean, |
|
|
|
keepSigned: boolean, |
|
|
|
chatContextMenuHintWasShown: boolean, |
|
|
|
chatContextMenuHintWasShown: boolean, |
|
|
|
stateId: number |
|
|
|
stateId: number, |
|
|
|
|
|
|
|
notifySettings: {[k in Exclude<NotifyPeer['_'], 'notifyPeer'>]?: PeerNotifySettings.peerNotifySettings} |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
export const STATE_INIT: State = { |
|
|
|
export const STATE_INIT: State = { |
|
|
@ -207,7 +208,8 @@ export const STATE_INIT: State = { |
|
|
|
}, |
|
|
|
}, |
|
|
|
keepSigned: true, |
|
|
|
keepSigned: true, |
|
|
|
chatContextMenuHintWasShown: false, |
|
|
|
chatContextMenuHintWasShown: false, |
|
|
|
stateId: nextRandomUint(32) |
|
|
|
stateId: nextRandomUint(32), |
|
|
|
|
|
|
|
notifySettings: {} |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
const ALL_KEYS = Object.keys(STATE_INIT) as any as Array<keyof State>; |
|
|
|
const ALL_KEYS = Object.keys(STATE_INIT) as any as Array<keyof State>; |
|
|
|