Fix.
This commit is contained in:
parent
065b6f0ed3
commit
de243bdc01
@ -160,7 +160,6 @@ class RoomChannel {
|
|||||||
}
|
}
|
||||||
c2r.set(roomJID, true)
|
c2r.set(roomJID, true)
|
||||||
this.room2Channel.set(roomJID, channelId)
|
this.room2Channel.set(roomJID, channelId)
|
||||||
this.roomConfToUpdate.set(roomJID, true)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -221,6 +220,11 @@ class RoomChannel {
|
|||||||
// This part must be done atomicly:
|
// This part must be done atomicly:
|
||||||
this._readData(data)
|
this._readData(data)
|
||||||
|
|
||||||
|
// Now we must mark all rooms for conf update.
|
||||||
|
for (const roomJID of this.room2Channel.keys()) {
|
||||||
|
this.roomConfToUpdate.set(roomJID, true)
|
||||||
|
}
|
||||||
|
|
||||||
await this.sync() // FIXME: or maybe scheduleSync ?
|
await this.sync() // FIXME: or maybe scheduleSync ?
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user