mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-30 05:06:58 +02:00
-> use the storyboard to display the roomDetailsViewController.
-> the "Back" is removed from the back key in the navbar.
This commit is contained in:
@@ -303,6 +303,20 @@
|
||||
participantsViewController.mxRoom = self.roomDataSource.room;
|
||||
}
|
||||
}
|
||||
else if ([[segue identifier] isEqualToString:@"showRoomDetails"])
|
||||
{
|
||||
if ([pushedViewController isKindOfClass:[RoomDetailsViewController class]])
|
||||
{
|
||||
// Dismiss keyboard
|
||||
[self dismissKeyboard];
|
||||
|
||||
RoomDetailsViewController* detailsViewController = (RoomDetailsViewController*)pushedViewController;
|
||||
[detailsViewController initWithSession:self.roomDataSource.mxSession andRoomId:self.roomDataSource.roomId];
|
||||
}
|
||||
}
|
||||
|
||||
// Hide back button title
|
||||
self.navigationItem.backBarButtonItem =[[UIBarButtonItem alloc] initWithTitle:@"" style:UIBarButtonItemStylePlain target:nil action:nil];
|
||||
}
|
||||
|
||||
#pragma mark - MXKRoomInputToolbarViewDelegate
|
||||
@@ -395,10 +409,7 @@
|
||||
// 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];
|
||||
[self performSegueWithIdentifier:@"showRoomDetails" sender:self];
|
||||
});
|
||||
|
||||
// cancel any requested edition
|
||||
|
||||
Reference in New Issue
Block a user