Telegram Web K with changes to work inside I2P
https://web.telegram.i2p/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
691 B
27 lines
691 B
import type { AppImManager } from './appManagers/appImManager'; |
|
import type { State } from './appManagers/appStateManager'; |
|
import { MOUNT_CLASS_TO } from './mtproto/mtproto_config'; |
|
import AppStorage from './storage'; |
|
|
|
const sessionStorage = new AppStorage<{ |
|
dc: number, |
|
user_auth: number, |
|
dc1_auth_key: any, |
|
dc2_auth_key: any, |
|
dc3_auth_key: any, |
|
dc4_auth_key: any, |
|
dc5_auth_key: any, |
|
max_seen_msg: number, |
|
server_time_offset: number, |
|
|
|
chatPositions: { |
|
[peerId_threadId: string]: { |
|
mid: number, |
|
top: number |
|
} |
|
}, |
|
} & State>({ |
|
storeName: 'session' |
|
}); |
|
MOUNT_CLASS_TO && (MOUNT_CLASS_TO.appStorage = sessionStorage); |
|
export default sessionStorage;
|
|
|