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.
34 lines
829 B
34 lines
829 B
/* |
|
* https://github.com/morethanwords/tweb |
|
* Copyright (C) 2019-2021 Eduard Kuzmenko |
|
* https://github.com/morethanwords/tweb/blob/master/LICENSE |
|
*/ |
|
|
|
import { MOUNT_CLASS_TO } from '../config/debug'; |
|
import { LangPackDifference } from '../layer'; |
|
import type { State } from './appManagers/appStateManager'; |
|
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 |
|
} |
|
}, |
|
langPack: LangPackDifference |
|
} & State>({ |
|
storeName: 'session' |
|
}); |
|
MOUNT_CLASS_TO.appStorage = sessionStorage; |
|
export default sessionStorage;
|
|
|