This commit is contained in:
marlon-erler
2024-07-21 21:41:19 +02:00
parent 39a86cc486
commit b37f1caa66
9 changed files with 57 additions and 52 deletions
+3 -3
View File
@@ -68,8 +68,8 @@ export default class ChatListViewModel {
}
};
// restore
restoreChats = (): void => {
// load
loadChats = (): void => {
this.chatViewModels.clear();
for (const chatModel of this.chatListModel.chatModels.values()) {
const chatViewModel = this.createChatViewModel(chatModel);
@@ -87,6 +87,6 @@ export default class ChatListViewModel {
this.storageModel = storageModel;
this.settingsViewModel = settingsViewModel;
this.restoreChats();
this.loadChats();
}
}