Prepare SYIOS-26: "The app can work offline when debackgrounded but not when restarting from cold"

In relation with the SDK change on mxSession, we introduce a matrixHandler status to handle following status: loggedOut, logged, storeDataReady, serverSyncDone.
(Boolean 'isLogged' and 'isInitialSyncDone' are removed).
This commit is contained in:
giomfo
2015-01-05 15:11:40 +01:00
parent b50492037e
commit 7382db2e64
8 changed files with 37 additions and 61 deletions
@@ -83,7 +83,7 @@
// Ensure to display room creation section
[self.tableView scrollRectToVisible:_roomCreationLabel.frame animated:NO];
if ([[MatrixHandler sharedHandler] isLogged]) {
if ([MatrixHandler sharedHandler].status != MatrixHandlerStatusLoggedOut) {
homeServerSuffix = [NSString stringWithFormat:@":%@",[MatrixHandler sharedHandler].homeServer];
// Update alias placeholder
_roomAliasTextField.placeholder = [NSString stringWithFormat:@"(e.g. #foo%@)", homeServerSuffix];