Skip to content

Commit e87345f

Browse files
committed
(fix) rooms-list-opened not overriding default behaviour
1 parent 5302e98 commit e87345f

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

src/lib/ChatWindow.vue

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
:text-messages="t"
1313
:show-search="showSearchCasted"
1414
:show-add-room="showAddRoomCasted"
15-
:show-rooms-list="showRoomsList"
15+
:show-rooms-list="showRoomsList && roomsListOpenedCasted"
1616
:text-formatting="textFormattingCasted"
1717
:link-options="linkOptionsCasted"
1818
:is-mobile="isMobile"
@@ -51,7 +51,7 @@
5151
:show-footer="showFooterCasted"
5252
:text-messages="t"
5353
:single-room="singleRoomCasted"
54-
:show-rooms-list="showRoomsList"
54+
:show-rooms-list="showRoomsList && roomsListOpenedCasted"
5555
:text-formatting="textFormattingCasted"
5656
:link-options="linkOptionsCasted"
5757
:is-mobile="isMobile"
@@ -432,8 +432,11 @@ export default {
432432
})
433433
},
434434
435-
roomsListOpenedCasted(val) {
436-
this.showRoomsList = val
435+
roomsListOpenedCasted: {
436+
immediate: true,
437+
handler(val) {
438+
this.showRoomsList = val
439+
}
437440
}
438441
},
439442

0 commit comments

Comments
 (0)