Skip to content

Commit 8b03b19

Browse files
committed
(demo) fix room select when clicking tags
1 parent 9bf3633 commit 8b03b19

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

demo/src/ChatContainer.vue

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,10 @@ export default {
338338
fetchMessages({ room, options = {} }) {
339339
this.$emit('show-demo-options', false)
340340
341-
if (options.reset) this.resetMessages()
341+
if (options.reset) {
342+
this.resetMessages()
343+
this.roomId = room.roomId
344+
}
342345
343346
if (this.endMessages && !this.startMessages)
344347
return (this.messagesLoaded = true)

0 commit comments

Comments
 (0)