improve keystrokes, cleanup
This commit is contained in:
@@ -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,
|
||||
);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user