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 8470c00 commit 07aea71Copy full SHA for 07aea71
demo/src/ChatContainer.vue
@@ -154,7 +154,7 @@ export default {
154
this.loadingLastMessageByRoom = 0
155
this.roomsLoadedCount = 0
156
this.rooms = []
157
- this.roomsLoaded = false
+ this.roomsLoaded = true
158
this.startRooms = null
159
this.endRooms = null
160
this.roomsListeners.forEach(listener => listener())
@@ -189,7 +189,7 @@ export default {
189
const rooms = await query.get()
190
// this.incrementDbCounter('Fetch Rooms', rooms.size)
191
192
- if (rooms.empty) this.roomsLoaded = true
+ this.roomsLoaded = rooms.empty || rooms.size < this.roomsPerPage
193
194
if (this.startRooms) this.endRooms = this.startRooms
195
this.startRooms = rooms.docs[rooms.docs.length - 1]
0 commit comments