improve keystrokes, cleanup

This commit is contained in:
marlon-erler
2026-04-15 12:47:10 +00:00
parent ed8f523a89
commit 091c666ccc
31 changed files with 324 additions and 245 deletions
+6 -3
View File
@@ -82,12 +82,12 @@ export default class ChatMessageViewModel {
};
reply = (): void => {
this.messagePageViewModel.replyingMessage.value = this;
this.messagePageViewModel.setReply(this);
this.hideInfoModal();
};
cancelReply = (): void => {
if (this.messagePageViewModel.replyingMessage.value != this) return;
this.messagePageViewModel.replyingMessage.value = undefined;
this.messagePageViewModel.setReply(undefined);
};
// view
@@ -131,7 +131,10 @@ export default class ChatMessageViewModel {
this.status.value = this.chatMessage.status;
if (this.chatMessage.inlineReplyId) {
this.inlineReply = this.messagePageViewModel.chatMessageViewModels.value.get(this.chatMessage.inlineReplyId);
this.inlineReply =
this.messagePageViewModel.chatMessageViewModels.value.get(
this.chatMessage.inlineReplyId,
);
}
};
+2 -2
View File
@@ -58,7 +58,7 @@ export default class ChatViewModel extends ContextHost<ChatPageTypes> {
this.chatListViewModel.openChat(this);
//this.selectedPage.callSubscriptions();
};
openPage = (page: ChatPageTypes): void => {
this.closeCurrentContext();
this.selectedPage.value = page;
@@ -142,7 +142,7 @@ export default class ChatViewModel extends ContextHost<ChatPageTypes> {
handleContextClose = (): void => {
this.chatListViewModel.closeChat();
}
};
// init
constructor(