Refactor cell rendering, move most of the controls to the subclass, refactor user actions, add you started call state

This commit is contained in:
ismailgulek
2021-03-17 18:17:54 +03:00
parent cb642ea51a
commit c73bd32cdd
8 changed files with 89 additions and 96 deletions
+3 -3
View File
@@ -2389,14 +2389,14 @@ NSNotificationName const RoomCallTileTappedNotification = @"RoomCallTileTappedNo
[self showReactionHistoryForEventId:tappedEventId animated:YES];
}
}
else if ([actionIdentifier isEqualToString:kMXKRoomBubbleCellCallBackButtonPressed])
else if ([actionIdentifier isEqualToString:RoomDirectCallStatusBubbleCell.callBackAction])
{
MXEvent *callInviteEvent = userInfo[kMXKRoomBubbleCellEventKey];
MXCallInviteEventContent *eventContent = [MXCallInviteEventContent modelFromJSON:callInviteEvent.content];
[self roomInputToolbarView:self.inputToolbarView placeCallWithVideo2:eventContent.isVideoCall];
}
else if ([actionIdentifier isEqualToString:kMXKRoomBubbleCellCallDeclineButtonPressed])
else if ([actionIdentifier isEqualToString:RoomDirectCallStatusBubbleCell.declineAction])
{
MXEvent *callInviteEvent = userInfo[kMXKRoomBubbleCellEventKey];
MXCallInviteEventContent *eventContent = [MXCallInviteEventContent modelFromJSON:callInviteEvent.content];
@@ -2404,7 +2404,7 @@ NSNotificationName const RoomCallTileTappedNotification = @"RoomCallTileTappedNo
MXCall *call = [self.mainSession.callManager callWithCallId:eventContent.callId];
[call hangup];
}
else if ([actionIdentifier isEqualToString:kMXKRoomBubbleCellCallAnswerButtonPressed])
else if ([actionIdentifier isEqualToString:RoomDirectCallStatusBubbleCell.answerAction])
{
MXEvent *callInviteEvent = userInfo[kMXKRoomBubbleCellEventKey];
MXCallInviteEventContent *eventContent = [MXCallInviteEventContent modelFromJSON:callInviteEvent.content];