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.

29 lines
676 B

4 years ago
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;