mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-30 21:26:57 +02:00
Public rooms search: Directory page starts to work (with cells from MatrixKit)
This commit is contained in:
@@ -20,6 +20,7 @@
|
||||
#import "RecentsViewController.h"
|
||||
|
||||
#import "RoomViewController.h"
|
||||
#import "DirectoryViewController.h"
|
||||
|
||||
@interface HomeViewController ()
|
||||
{
|
||||
@@ -312,6 +313,11 @@
|
||||
}
|
||||
}
|
||||
|
||||
- (void)showPublicRoomsDirectory
|
||||
{
|
||||
[self performSegueWithIdentifier:@"showDirectory" sender:self];
|
||||
}
|
||||
|
||||
#pragma mark - Internal methods
|
||||
|
||||
// Made the currently displayed child update its selected cell
|
||||
@@ -379,6 +385,11 @@
|
||||
controller.navigationItem.leftItemsSupplementBackButton = YES;
|
||||
}
|
||||
}
|
||||
else if ([[segue identifier] isEqualToString:@"showDirectory"])
|
||||
{
|
||||
DirectoryViewController *directoryViewController = segue.destinationViewController;
|
||||
[directoryViewController displayWitDataSource:recentsDataSource.publicRoomsDirectoryDataSource];
|
||||
}
|
||||
|
||||
// Hide back button title
|
||||
self.navigationItem.backBarButtonItem =[[UIBarButtonItem alloc] initWithTitle:@"" style:UIBarButtonItemStylePlain target:nil action:nil];
|
||||
|
||||
Reference in New Issue
Block a user