mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2025-01-22 10:11:39 +01:00
clarify order
This commit is contained in:
parent
15dfb6c202
commit
e850874019
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user