App may not start in 1.6.0 #4919

- Update after review
This commit is contained in:
Gil Eluard
2021-09-28 15:22:30 +02:00
parent a42af21f2d
commit 137da63d8b

View File

@@ -577,11 +577,11 @@ Matrix session observer used to detect new opened sessions.
dispatch_group_t dispatchGroup = dispatch_group_create();
dispatch_group_enter(dispatchGroup);
session.updateSpaces = NO;
session.spaceService.graphUpdateEnabled = NO;
// Not continuing in completion block here, because PushKit mandates reporting a new call in the same run loop.
// 'handleBackgroundSyncCacheIfRequiredWithCompletion' is processing to-device events synchronously.
[session handleBackgroundSyncCacheIfRequiredWithCompletion:^{
session.updateSpaces = YES;
session.spaceService.graphUpdateEnabled = YES;
dispatch_group_leave(dispatchGroup);
}];