File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed
frontend/src/components/app/matches Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -107,6 +107,7 @@ export default {
107107 this .scrollChatToBottom ();
108108 },
109109 async fetchNewMessages () {
110+ await this .$http .post (` /messages/see/${ this .chatWithUserId } ` );
110111 const messagesRequest = await this .$http .get (` /conversations/${ this .chatWithUserId } ` );
111112 const newMessages = messagesRequest .data .messages ;
112113 const oldMessageCount = this .messages .length ;
@@ -117,6 +118,7 @@ export default {
117118 }
118119 },
119120 async prepareChatForNewUser () {
121+ await this .$http .post (` /messages/see/${ this .chatWithUserId } ` );
120122 const messagesRequest = await this .$http .get (` /conversations/${ this .chatWithUserId } ` );
121123 this .messages = messagesRequest .data .messages ;
122124 this .determineFirstMessagesOfTimespans (this .messages );
You can’t perform that action at this time.
0 commit comments