add button to remove chat

This commit is contained in:
marlon-erler
2024-07-20 20:48:13 +02:00
parent 995f82f3ef
commit 819c8f4cac
6 changed files with 29 additions and 2 deletions
+1
View File
@@ -63,6 +63,7 @@ export default class ChatListViewModel {
// restore
restoreChats = (): void => {
this.chatViewModels.clear();
for (const chatModel of this.chatListModel.chatModels.values()) {
const chatViewModel = this.createChatViewModel(chatModel);
this.chatViewModels.add(chatViewModel);