feat: add toggle to download history

This commit is contained in:
Adhiraj Singh
2022-05-22 17:23:30 +05:30
parent 85a58fbc10
commit 9a39a46398
4 changed files with 27 additions and 12 deletions

View File

@@ -18,6 +18,8 @@ import { CommonSocketConfig } from './Socket'
export type MessageRetryMap = { [msgId: string]: number }
export type SocketConfig = CommonSocketConfig<AuthenticationState> & {
/** By default true, should history messages be downloaded and processed */
downloadHistory: boolean
/** provide a cache to store a user's device list */
userDevicesCache?: NodeCache
/**