make removing chats dynamic

This commit is contained in:
marlon-erler
2024-07-23 01:22:08 +02:00
parent 1e4cc8a39a
commit bd3ea5cc07
2 changed files with 2 additions and 4 deletions
+1 -2
View File
@@ -1309,7 +1309,6 @@
this.primaryChannelInput.value
);
this.primaryChannel.value = this.chatViewModel.chatModel.info.primaryChannel;
this.chatViewModel.chatListViewModel.updateIndices();
};
addSecondaryChannel = () => {
this.secondaryChannels.add(this.newSecondaryChannelInput.value);
@@ -1339,7 +1338,7 @@
remove = () => {
this.chatViewModel.close();
this.chatViewModel.chatModel.delete();
this.chatViewModel.chatListViewModel.loadChats();
this.chatViewModel.chatListViewModel.untrackChat(this.chatViewModel);
};
// load
loadListRelevantData = () => {