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 19b7bb4 commit 4f2240cCopy full SHA for 4f2240c
demo/src/ChatContainer.vue
@@ -240,10 +240,8 @@ export default {
240
// this.incrementDbCounter('Listen Last Room Message', messages.size)
241
messages.forEach(message => {
242
const lastMessage = this.formatLastMessage(message.data())
243
- this.$set(this.rooms, index, {
244
- ...this.rooms[index],
245
- lastMessage
246
- })
+ this.rooms[index].lastMessage = lastMessage
+ this.rooms = [...this.rooms]
247
})
248
if (this.loadingLastMessageByRoom < this.rooms.length) {
249
this.loadingLastMessageByRoom++
0 commit comments