mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-05-04 06:58:20 +02:00
HomeVC: Moved code (opening room and maintaining the current one) from RecentsVC to HomeVC - Part 1
This commit is contained in:
@@ -14,16 +14,30 @@
|
||||
limitations under the License.
|
||||
*/
|
||||
|
||||
#import <MatrixKit/MatrixKit.h>
|
||||
|
||||
#import "SegmentedViewController.h"
|
||||
|
||||
@interface HomeViewController : SegmentedViewController <UISearchBarDelegate, UIGestureRecognizerDelegate>
|
||||
@interface HomeViewController : SegmentedViewController <MXKRecentListViewControllerDelegate, UISearchBarDelegate, UIGestureRecognizerDelegate>
|
||||
|
||||
@property (weak, nonatomic) IBOutlet UIBarButtonItem *settingsBarButtonItem;
|
||||
@property (weak, nonatomic) IBOutlet UIBarButtonItem *searchBarButtonIem;
|
||||
|
||||
|
||||
- (void)displayWithSession:(MXSession*)session;
|
||||
|
||||
/**
|
||||
Open the room with the provided identifier in a specific matrix session.
|
||||
|
||||
@param roomId the room identifier.
|
||||
@param mxSession the matrix session in which the room should be available.
|
||||
*/
|
||||
- (void)selectRoomWithId:(NSString*)roomId inMatrixSession:(MXSession*)mxSession;
|
||||
|
||||
/**
|
||||
Close the current selected room (if any)
|
||||
*/
|
||||
- (void)closeSelectedRoom;
|
||||
|
||||
/**
|
||||
Action registered on `UIControlEventTouchUpInside` event for both buttons.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user