mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-30 05:06:58 +02:00
Plug the RoomDetailsViewController
But -> the update is not yet done -> the ui must be updated.
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user