mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-26 11:30:50 +02:00
Jitsi widget: Display the hangup button when we are back-to-app
This commit is contained in:
@@ -1211,9 +1211,11 @@
|
||||
userPictureView.clipsToBounds = YES;
|
||||
}
|
||||
|
||||
// Show the hangup button if there is an active call in the current room
|
||||
// Show the hangup button if there is an active call or an active jitsi
|
||||
// conference call in the current room
|
||||
MXCall *callInRoom = [self.roomDataSource.mxSession.callManager callInRoom:self.roomDataSource.roomId];
|
||||
if (callInRoom && callInRoom.state != MXCallStateEnded)
|
||||
if ((callInRoom && callInRoom.state != MXCallStateEnded)
|
||||
|| [[AppDelegate theDelegate].jitsiViewController.widget.roomId isEqualToString:self.roomDataSource.roomId])
|
||||
{
|
||||
roomInputToolbarView.activeCall = YES;
|
||||
}
|
||||
@@ -2713,6 +2715,13 @@
|
||||
{
|
||||
[callInRoom hangup];
|
||||
}
|
||||
else if ([[AppDelegate theDelegate].jitsiViewController.widget.roomId isEqualToString:self.roomDataSource.roomId])
|
||||
{
|
||||
[[AppDelegate theDelegate].jitsiViewController hangup];
|
||||
}
|
||||
|
||||
[self refreshActivitiesViewDisplay];
|
||||
[self refreshRoomInputToolbar];
|
||||
}
|
||||
|
||||
- (void)roomInputToolbarView:(MXKRoomInputToolbarView*)toolbarView heightDidChanged:(CGFloat)height completion:(void (^)(BOOL finished))completion
|
||||
|
||||
Reference in New Issue
Block a user