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.
  • Loading branch information
manuroe committed Mar 7, 2017
1 parent cc3857c commit bf71247
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions MatrixSDK/Crypto/MXCrypto.m
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,11 @@ - (void)start:(void (^)())success
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];

success();
});

Expand Down

0 comments on commit bf71247

Please sign in to comment.