We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e423c15 commit 40b6288Copy full SHA for 40b6288
demo/src/ChatContainer.vue
@@ -40,7 +40,7 @@
40
:theme="theme"
41
:styles="styles"
42
:current-user-id="currentUserId"
43
- :roomId="roomId"
+ :room-id="roomId"
44
:rooms="loadedRooms"
45
:loading-rooms="loadingRooms"
46
:messages="messages"
src/ChatWindow/ChatWindow.vue
@@ -175,6 +175,8 @@ export default {
175
if (val && !this.loadingRooms && this.rooms.length) {
176
const room = this.rooms.find(r => r.roomId === val)
177
this.fetchRoom({ room })
178
+ } else if (!val) {
179
+ this.room = {}
180
}
181
182
},
0 commit comments