clarify order

This commit is contained in:
Bruno Windels 2021-04-28 10:05:34 +02:00
parent 15dfb6c202
commit e850874019

View file

@ -291,6 +291,9 @@ export class Sync {
for(let rs of roomStates) {
log.wrap("room", log => rs.room.afterSync(rs.changes, log), log.level.Detail);
if (rs.isNewRoom) {
// important to add the room before removing the invite,
// so the room will be found if looking for it when the invite
// is removed
this._session.addRoomAfterSync(rs.room);
}
}