mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 11:35:04 +01:00
process own membership changes before device lists
This commit is contained in:
parent
703c89e276
commit
aeb2f5402a
@ -173,15 +173,15 @@ export class Session {
|
|||||||
changes.syncInfo = syncInfo;
|
changes.syncInfo = syncInfo;
|
||||||
}
|
}
|
||||||
if (this._deviceTracker) {
|
if (this._deviceTracker) {
|
||||||
const deviceLists = syncResponse.device_lists;
|
|
||||||
if (deviceLists) {
|
|
||||||
await this._deviceTracker.writeDeviceChanges(deviceLists, txn);
|
|
||||||
}
|
|
||||||
for (const {room, changes} of roomChanges) {
|
for (const {room, changes} of roomChanges) {
|
||||||
if (room.isTrackingMembers && changes.memberChanges?.size) {
|
if (room.isTrackingMembers && changes.memberChanges?.size) {
|
||||||
await this._deviceTracker.writeMemberChanges(room, changes.memberChanges, txn);
|
await this._deviceTracker.writeMemberChanges(room, changes.memberChanges, txn);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
const deviceLists = syncResponse.device_lists;
|
||||||
|
if (deviceLists) {
|
||||||
|
await this._deviceTracker.writeDeviceChanges(deviceLists, txn);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return changes;
|
return changes;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user