add methods to send message

This commit is contained in:
marlon-erler
2024-07-20 20:53:48 +02:00
parent 819c8f4cac
commit 9f93856829
2 changed files with 42 additions and 23 deletions
+6
View File
@@ -102,6 +102,12 @@ export default class ChatViewModel {
this.chatListViewModel.restoreChats();
}
// messaging
sendMessage = (): void => {
this.chatModel.sendMessage(this.composingMessage.value);
this.composingMessage.value = "";
}
// restore
restorePageSelection = (): void => {
const path: string[] = storageKeys.chatLastUsedPage(this.chatModel.id);