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 ac92263 commit ea10cbdCopy full SHA for ea10cbd
src/ChatWindow/ChatWindow.vue
@@ -125,7 +125,12 @@ export default {
125
rooms: {
126
immediate: true,
127
handler(newVal, oldVal) {
128
- if (!newVal[0]) return (this.showRoomsList = true)
+ if (
129
+ !newVal[0] ||
130
+ !newVal.find(room => room.roomId === this.room.roomId)
131
+ ) {
132
+ this.showRoomsList = true
133
+ }
134
135
if (newVal[0] && (!oldVal || newVal.length !== oldVal.length)) {
136
if (this.roomId) {
0 commit comments