mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-05-03 22:56:57 +02:00
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:
@@ -20,6 +20,13 @@
|
||||
|
||||
extern NSString *const kMatrixHandlerUnsupportedMessagePrefix;
|
||||
|
||||
typedef enum : NSUInteger {
|
||||
MatrixHandlerStatusLoggedOut = 0,
|
||||
MatrixHandlerStatusLogged,
|
||||
MatrixHandlerStatusStoreDataReady,
|
||||
MatrixHandlerStatusServerSyncDone
|
||||
} MatrixHandlerStatus;
|
||||
|
||||
@interface MatrixHandler : NSObject
|
||||
|
||||
@property (strong, nonatomic) MXRestClient *mxRestClient;
|
||||
@@ -38,8 +45,7 @@ extern NSString *const kMatrixHandlerUnsupportedMessagePrefix;
|
||||
// Matrix user's settings
|
||||
@property (nonatomic) MXPresence userPresence;
|
||||
|
||||
@property (nonatomic,readonly) BOOL isLogged;
|
||||
@property (nonatomic,readonly) BOOL isInitialSyncDone;
|
||||
@property (nonatomic,readonly) MatrixHandlerStatus status;
|
||||
@property (nonatomic,readonly) BOOL isResumeDone;
|
||||
// return the MX cache size in bytes
|
||||
@property (nonatomic,readonly) NSUInteger MXCacheSize;
|
||||
|
||||
Reference in New Issue
Block a user