mirror of
https://github.com/matrix-org/sliding-sync.git
synced 2025-03-10 13:37:11 +00:00
bugfix: #9
This commit is contained in:
parent
bde9f259dd
commit
ab359c7ff3
@ -435,6 +435,9 @@ const doSyncLoop = async(accessToken, sessionId) => {
|
||||
const startIndex = op.range[0];
|
||||
for (let i = startIndex; i <= op.range[1]; i++) {
|
||||
const r = op.rooms[i - startIndex];
|
||||
if (!r) {
|
||||
break; // we are at the end of list
|
||||
}
|
||||
rooms.roomIndexToRoomId[i] = r.room_id;
|
||||
accumulateRoomData(r);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user