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 8e3a2b5 commit 4a955ccCopy full SHA for 4a955cc
src/ChatWindow/ChatWindow.vue
@@ -25,7 +25,7 @@
25
:textMessages="t"
26
:showRoomsList="showRoomsList"
27
:isMobile="isMobile"
28
- @toggleRoomsList="showRoomsList = !showRoomsList"
+ @toggleRoomsList="toggleRoomsList"
29
@fetchMessages="fetchMessages"
30
@sendMessage="sendMessage"
31
@editMessage="editMessage"
@@ -134,6 +134,10 @@ export default {
134
this.isMobile = window.innerWidth < this.mobileBreakpoint
135
this.showRoomsList = !this.isMobile
136
},
137
+ toggleRoomsList() {
138
+ this.showRoomsList = !this.showRoomsList
139
+ if (this.isMobile) this.room = {}
140
+ },
141
fetchRoom({ room }) {
142
this.room = room
143
this.fetchMessages({ reset: true })
0 commit comments