Plug the RoomDetailsViewController

But
-> the update is not yet done
-> the ui must be updated.
This commit is contained in:
yannick
2015-11-20 14:12:37 +01:00
parent ef28b58abb
commit 03ac45c673
11 changed files with 525 additions and 16 deletions
@@ -23,6 +23,8 @@
#import "RoomParticipantsViewController.h"
#import "RoomDetailsViewController.h"
@interface RoomViewController ()
{
// The constraint used to animate menu list display
@@ -386,6 +388,23 @@
[super tableView:tableView didSelectRowAtIndexPath:indexPath];
}
#pragma mark - RoomDetailsViewController management
- (BOOL)roomTitleViewShouldBeginEditing:(MXKRoomTitleView*)titleView
{
// instead of opening a text edition
// launch a dedicated viewcontroller.
dispatch_async(dispatch_get_main_queue(), ^{
RoomDetailsViewController* controller = [RoomDetailsViewController roomDetailsViewController];
[controller initWithSession:self.roomDataSource.mxSession andRoomId:self.roomDataSource.roomId];
[self.navigationController pushViewController:controller animated:YES];
});
// cancel any requested edition
return NO;
}
@end