SYIOS-26 Make the app usable when starting the app offline.

Added another callback parameter to [MXSession start]: onStoreDataReady to indicate when the app can start to work offline
This commit is contained in:
manuroe 2014-12-23 17:48:43 +01:00
parent dc69136aef
commit dad405a91e

View file

@ -119,6 +119,8 @@ static MatrixHandler *sharedHandler = nil;
// Launch mxSession
[self.mxSession start:^{
// @TODO (SYIOS-26)
} onServerSyncDone:^{
self.isInitialSyncDone = YES;
[self setUserPresence:MXPresenceOnline andStatusMessage:nil completion:nil];
_isResumeDone = YES;