forked from mystiq/hydrogen-web
clarify order
This commit is contained in:
parent
15dfb6c202
commit
e850874019
1 changed files with 3 additions and 0 deletions
|
@ -291,6 +291,9 @@ export class Sync {
|
||||||
for(let rs of roomStates) {
|
for(let rs of roomStates) {
|
||||||
log.wrap("room", log => rs.room.afterSync(rs.changes, log), log.level.Detail);
|
log.wrap("room", log => rs.room.afterSync(rs.changes, log), log.level.Detail);
|
||||||
if (rs.isNewRoom) {
|
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);
|
this._session.addRoomAfterSync(rs.room);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue