Handle group call tile tap

This commit is contained in:
ismailgulek
2021-03-17 19:41:31 +03:00
parent 1d2ae04058
commit f0e380e1ba
6 changed files with 148 additions and 0 deletions
+12
View File
@@ -127,6 +127,7 @@
#import "Riot-Swift.h"
NSNotificationName const RoomCallTileTappedNotification = @"RoomCallTileTappedNotification";
NSNotificationName const RoomGroupCallTileTappedNotification = @"RoomGroupCallTileTappedNotification";
@interface RoomViewController () <UISearchBarDelegate, UIGestureRecognizerDelegate, UIScrollViewAccessibilityDelegate, RoomTitleViewTapGestureDelegate, RoomParticipantsViewControllerDelegate, MXKRoomMemberDetailsViewControllerDelegate, ContactsTableViewControllerDelegate, MXServerNoticesDelegate, RoomContextualMenuViewControllerDelegate,
ReactionsMenuViewModelCoordinatorDelegate, EditHistoryCoordinatorBridgePresenterDelegate, MXKDocumentPickerPresenterDelegate, EmojiPickerCoordinatorBridgePresenterDelegate,
@@ -2262,6 +2263,17 @@ NSNotificationName const RoomCallTileTappedNotification = @"RoomCallTileTappedNo
[self selectEventWithId:tappedEvent.eventId];
}
}
else if (bubbleData.tag == RoomBubbleCellDataTagGroupCall)
{
if ([bubbleData isKindOfClass:[RoomBubbleCellData class]])
{
// post notification `RoomGroupCallTileTapped`
[[NSNotificationCenter defaultCenter] postNotificationName:RoomGroupCallTileTappedNotification object:bubbleData];
preventBubblesTableViewScroll = YES;
[self selectEventWithId:tappedEvent.eventId];
}
}
else
{
// Show contextual menu on single tap if bubble is not collapsed