Skip to content

Commit

Permalink
e2e: Upload one-time keys on /sync rather than a timer
Browse files Browse the repository at this point in the history
Call [deviceList refreshOutdatedDeviceLists] after making announcement. -> Do it on the right thread
  • Loading branch information
manuroe committed Mar 7, 2017
1 parent bf71247 commit 4564620
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions MatrixSDK/Crypto/MXCrypto.m
Original file line number Diff line number Diff line change
Expand Up @@ -231,13 +231,13 @@ - (void)start:(void (^)())success

// Once keys are uploaded, announce ourselves
MXHTTPOperation *operation2 = [self makeAnnoucement:roomsByUser success:^{
dispatch_async(dispatch_get_main_queue(), ^{
startOperation = nil;

// Make sure we are refreshing devices lists right instead
// of waiting for the next /sync that may occur in 30s.
[_deviceList refreshOutdatedDeviceLists];
// Make sure we are refreshing devices lists right instead
// of waiting for the next /sync that may occur in 30s.
[_deviceList refreshOutdatedDeviceLists];

dispatch_async(dispatch_get_main_queue(), ^{
startOperation = nil;
success();
});

Expand Down

0 comments on commit 4564620

Please sign in to comment.