Bug Fix - Call: The "Return to call" banner does not rotate with the device

#482

+ handle correclty hangup button in room options menu
This commit is contained in:
giomfo
2016-09-02 22:21:02 +02:00
parent d8d3fd483d
commit 957e06bf86
10 changed files with 105 additions and 57 deletions
+4 -1
View File
@@ -934,7 +934,7 @@
userPictureView.clipsToBounds = YES;
}
// Show the hangup button if there is an active call
// Show the hangup button if there is an active call in the current room
MXCall *callInRoom = [self.roomDataSource.mxSession.callManager callInRoom:self.roomDataSource.roomId];
if (callInRoom && callInRoom.state != MXCallStateEnded)
{
@@ -943,6 +943,9 @@
else
{
roomInputToolbarView.activeCall = NO;
// Hide the call button if there is an active call in another room
roomInputToolbarView.supportCallOption &= ([[AppDelegate theDelegate] callStatusBarWindow] == nil);
}
}
}