fix typo
This commit is contained in:
@@ -174,7 +174,7 @@ export default class ChatModel {
|
|||||||
this.connectionModel.addChannel(this.info.primaryChannel);
|
this.connectionModel.addChannel(this.info.primaryChannel);
|
||||||
};
|
};
|
||||||
|
|
||||||
markUnread = (): void => {
|
markRead = (): void => {
|
||||||
this.info.hasUnreadMessages = false;
|
this.info.hasUnreadMessages = false;
|
||||||
this.storeInfo();
|
this.storeInfo();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -38,7 +38,7 @@ export default class ChatViewModel {
|
|||||||
// view
|
// view
|
||||||
open = (): void => {
|
open = (): void => {
|
||||||
this.chatListViewModel.openChat(this);
|
this.chatListViewModel.openChat(this);
|
||||||
this.markUnread();
|
this.markRead();
|
||||||
};
|
};
|
||||||
|
|
||||||
close = (): void => {
|
close = (): void => {
|
||||||
@@ -66,9 +66,9 @@ export default class ChatViewModel {
|
|||||||
this.index.value = index;
|
this.index.value = index;
|
||||||
};
|
};
|
||||||
|
|
||||||
markUnread = (): void => {
|
markRead = (): void => {
|
||||||
this.hasUnreadMessages.value = false;
|
this.hasUnreadMessages.value = false;
|
||||||
this.chatModel.markUnread();
|
this.chatModel.markRead();
|
||||||
};
|
};
|
||||||
|
|
||||||
// load
|
// load
|
||||||
@@ -133,7 +133,7 @@ export default class ChatViewModel {
|
|||||||
chatModel.chatMessageHandlerManager.addHandler(
|
chatModel.chatMessageHandlerManager.addHandler(
|
||||||
(chatMessage: ChatMessage) => {
|
(chatMessage: ChatMessage) => {
|
||||||
this.messagePageViewModel.showChatMessage(chatMessage);
|
this.messagePageViewModel.showChatMessage(chatMessage);
|
||||||
this.markUnread();
|
this.markRead();
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user