Merge pull request #4925 from vector-im/gil/4919_app_may_not_start_in_1.6.0

App may not start in 1.6.0
This commit is contained in:
Gil Eluard 2021-09-28 15:55:35 +02:00 committed by GitHub
commit b0b8a06088
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 0 deletions

View file

@ -577,9 +577,11 @@ Matrix session observer used to detect new opened sessions.
dispatch_group_t dispatchGroup = dispatch_group_create();
dispatch_group_enter(dispatchGroup);
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.spaceService.graphUpdateEnabled = YES;
dispatch_group_leave(dispatchGroup);
}];

1
changelog.d/4919.bugfix Normal file
View file

@ -0,0 +1 @@
fixed App may not start in 1.6.0