add setting for primary channel

This commit is contained in:
marlon-erler
2024-07-20 17:30:36 +02:00
parent e704072d6a
commit e3c902f60e
9 changed files with 85 additions and 8 deletions
+6
View File
@@ -43,6 +43,12 @@ export default class ChatViewModel {
this.chatListViewModel.closeChat();
};
setPrimaryChannel = (): void => {
this.chatModel.setPrimaryChannel(this.primaryChannelInput.value);
this.primaryChannel.value = this.chatModel.info.primaryChannel;
this.chatListViewModel.updateIndices();
}
// restore
restorePageSelection = (): void => {
const path: string[] = storageKeys.chatLastUsedPage(this.chatModel.id);