mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-05-04 06:58:20 +02:00
Handle Matrix User presence as following:
- set Online when app is active. - set Unavailable when app is suspended (inactive). - set Offline when user logs out the app (this option is currently commented because the user is kept offline when he logs in again from web client). Multidevice handling: the app compares the presence from server with the local value in order to keep the most pertinent.
This commit is contained in:
@@ -36,6 +36,7 @@ extern NSString *const kMatrixHandlerUnsupportedMessagePrefix;
|
||||
// Matrix user's settings
|
||||
@property (strong, nonatomic) NSString *userDisplayName;
|
||||
@property (strong, nonatomic) NSString *userPictureURL;
|
||||
@property (nonatomic) MXPresence userPresence;
|
||||
|
||||
@property (nonatomic,readonly) BOOL isLogged;
|
||||
@property (nonatomic,readonly) BOOL isInitialSyncDone;
|
||||
@@ -43,7 +44,7 @@ extern NSString *const kMatrixHandlerUnsupportedMessagePrefix;
|
||||
|
||||
+ (MatrixHandler *)sharedHandler;
|
||||
|
||||
- (void)pause;
|
||||
- (void)pauseInBackgroundTask;
|
||||
- (void)resume;
|
||||
- (void)logout;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user