Skip to content

Commit 62a82fc

Browse files
committed
key for each chat for re-rendering
1 parent c898198 commit 62a82fc

File tree

2 files changed

+1
-9
lines changed

2 files changed

+1
-9
lines changed

frontend/src/components/app/matches/Chat.vue

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -128,15 +128,6 @@ export default {
128128
this.scrollChatToBottom();
129129
},
130130
},
131-
watch: {
132-
chatWithUserId: {
133-
async handler() {
134-
if (this.chatWithUserId) {
135-
await this.prepareChatForNewUser();
136-
}
137-
},
138-
},
139-
},
140131
async beforeMount() {
141132
await this.prepareChatForNewUser();
142133
this.loggedInUserId = this.$store.getters.getLoggedInUser.id;

frontend/src/views/app/Matches.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
</div>
4242
<Chat class="absolute top-0 w-full h-full bg-white-matcha
4343
md:relative md:ml-4"
44+
:key="chatWithUserId"
4445
v-if="chatWithUserId"
4546
v-bind:chatWithUserId="chatWithUserId"
4647
v-on:new-message="fetchMessages"

0 commit comments

Comments
 (0)