mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-21 00:52:43 +02:00
Navigate to thread view for search results in threads
This commit is contained in:
@@ -209,18 +209,16 @@
|
||||
{
|
||||
// Data in the cells are actually Vector RoomBubbleCellData
|
||||
RoomBubbleCellData *cellData = (RoomBubbleCellData*)[self.dataSource cellDataAtIndex:indexPath.row];
|
||||
_selectedEvent = cellData.bubbleComponents[0].event;
|
||||
MXEvent *event = cellData.bubbleComponents[0].event;
|
||||
|
||||
RoomSearchViewController *roomSearchViewController = (RoomSearchViewController*)self.parentViewController;
|
||||
|
||||
// Hide the keyboard handled by the search text input which belongs to RoomSearchViewController
|
||||
[((RoomSearchViewController*)self.parentViewController).searchBar resignFirstResponder];
|
||||
[roomSearchViewController.searchBar resignFirstResponder];
|
||||
|
||||
[tableView deselectRowAtIndexPath:indexPath animated:YES];
|
||||
|
||||
// Make the RoomSearchViewController (that contains this VC) open the RoomViewController
|
||||
[self.parentViewController performSegueWithIdentifier:@"showTimeline" sender:self];
|
||||
|
||||
// Reset the selected event. RoomSearchViewController got it when here
|
||||
_selectedEvent = nil;
|
||||
[roomSearchViewController selectEvent:event];
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
Reference in New Issue
Block a user