Handle at AppDelegate level the new opened matrix sessions.

This commit is contained in:
giomfo
2015-04-17 15:45:32 +02:00
parent 718ccd93ec
commit b9e45fafb2
4 changed files with 59 additions and 46 deletions
@@ -16,6 +16,8 @@
#import <UIKit/UIKit.h>
#import <MatrixSDK/MatrixSDK.h>
#define TABBAR_HOME_INDEX 0
#define TABBAR_RECENTS_INDEX 1
#define TABBAR_CONTACTS_INDEX 2
@@ -36,5 +38,11 @@
@property (strong, nonatomic) NSString *visibleRoomId; // nil if no room is presently visible
/**
Associated matrix session (nil by default).
This property is propagated to all view controllers handled by the tab bar controller.
*/
@property (nonatomic) MXSession *mxSession;
@end