Skip to content

Commit 2423a9c

Browse files
committed
(events) add toggle-rooms-list
1 parent 5127539 commit 2423a9c

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -579,6 +579,7 @@ messages="[
579579
| message-action-handler (4) | `{ roomId, action, message }` | A user clicks on the dropdown icon inside a message |
580580
| send-message-reaction | `{ roomId, messageId, reaction, remove }` | A user clicks on the emoji icon inside a message |
581581
| room-info | `room` | A user clicks the room header bar |
582+
| toggle-rooms-list | `{ opened }` | A user clicks on the toggle icon inside a room header |
582583
| textarea-action-handler (5) | `{ roomId, message }` | A user clicks on custom icon inside the footer |
583584
| typing-message | `{ message, roomId }` | A user is typing a message |
584585

src/ChatWindow/ChatWindow.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -240,6 +240,7 @@ export default {
240240
toggleRoomsList() {
241241
this.showRoomsList = !this.showRoomsList
242242
if (this.isMobile) this.room = {}
243+
this.$emit('toggle-rooms-list', { opened: this.showRoomsList })
243244
},
244245
fetchRoom({ room }) {
245246
this.room = room

0 commit comments

Comments
 (0)