import { NormalChannelInfo , UpdatableChannelDataStore } from '../channel' ; import { UpdatableChatListStore } from '../chat' ; import { AsyncClientDataLoadResult , ClientDataLoader } from '../loader' ; import { OpenChannelInfo } from '../openlink' ; import { NormalChannelUserInfo , OpenChannelUserInfo } from '../user' ; import { TalkMemoryChannelDataStore } from './channel' ; import { TalkMemoryChatListStore } from './chat' ; export const TalkInMemoryDataLoader = { async loadChatListStore ( ) { return { shouldUpdate : false , value : new TalkMemoryChatListStore ( 300 ) } ; } , async loadNormalChannelStore ( ) { return { shouldUpdate : true , value : new TalkMemoryChannelDataStore ( NormalChannelInfo . createPartial ( { } ) ) } ; } , async loadOpenChannelStore ( ) { return { shouldUpdate : true , value : new TalkMemoryChannelDataStore ( OpenChannelInfo . createPartial ( { } ) ) } ; } } ;