Skip to content

Commit 30e5b5b

Browse files
committed
(fix) roomsLoaded not updated
1 parent 5bd0dd9 commit 30e5b5b

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/ChatWindow/RoomsList/RoomsList.vue

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -122,15 +122,18 @@ export default {
122122
this.loadingMoreRooms = false
123123
}
124124
},
125-
126125
loadingRooms(val) {
127126
if (val) this.infiniteState = null
128127
},
129-
130128
loadingMoreRooms(val) {
131129
this.$emit('loading-more-rooms', val)
132130
},
133-
131+
roomsLoaded(val) {
132+
if (val && this.infiniteState) {
133+
this.loadingMoreRooms = false
134+
this.infiniteState.complete()
135+
}
136+
},
134137
room: {
135138
immediate: true,
136139
handler(val) {

0 commit comments

Comments
 (0)