Add end call button for active calls

This commit is contained in:
ismailgulek
2021-04-27 14:50:58 +03:00
parent 2cae8285b3
commit 21e12a71d0
4 changed files with 36 additions and 1 deletions
+8
View File
@@ -2659,6 +2659,14 @@ const NSTimeInterval kResizeComposerAnimationDuration = .05;
MXCall *call = [self.mainSession.callManager callWithCallId:eventContent.callId];
[call answer];
}
else if ([actionIdentifier isEqualToString:RoomDirectCallStatusBubbleCell.endCallAction])
{
MXEvent *callInviteEvent = userInfo[kMXKRoomBubbleCellEventKey];
MXCallInviteEventContent *eventContent = [MXCallInviteEventContent modelFromJSON:callInviteEvent.content];
MXCall *call = [self.mainSession.callManager callWithCallId:eventContent.callId];
[call hangup];
}
else if ([actionIdentifier isEqualToString:RoomGroupCallStatusBubbleCell.joinAction] ||
[actionIdentifier isEqualToString:RoomGroupCallStatusBubbleCell.answerAction])
{