You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// If we are using a glob, there may be no relevant events in this chunk.
159
+
if(events.length>0){
160
+
awaitcb(events);
188
161
}
189
-
}else{
190
-
thrownewError(`Internal Error: rooms/initialSync did not return a pagination chunk for ${roomId}, this is not normal and if it is we need to stop using it. See roomInitialSync() for why we are using it.`);
191
-
}
162
+
// This check exists only becuase of a Synapse compliance bug https://github.com/matrix-org/synapse/issues/12102.
163
+
// We also check after processing events as the `lastToken` can be 'null' if we are at the start of the steam
164
+
// and `token` can also be 'null' as we have paginated the entire timeline, but there would be unprocessed events in the
165
+
// chunk that was returned in this request.
166
+
if(lastToken===token){
167
+
LogService.debug("utils","Backfill returned same end token - returning early.");
0 commit comments