Skip to content
This repository has been archived by the owner on Dec 12, 2022. It is now read-only.

Commit

Permalink
Merge pull request #353 from morozkin/issue_933
Browse files Browse the repository at this point in the history
Fix issue #933
  • Loading branch information
manuroe committed Aug 29, 2017
2 parents 124f01a + 35402c5 commit eb5e03c
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions MatrixKit/Controllers/MXKCallViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -523,6 +523,7 @@ - (void)call:(MXCall *)call stateDidChange:(MXCallState)state reason:(MXEvent *)
break;
case MXCallStateWaitLocalMedia:
self.isRinging = NO;
speakerButton.selected = call.audioToSpeaker;
[localPreviewActivityView startAnimating];
break;
case MXCallStateCreateOffer:
Expand Down Expand Up @@ -560,15 +561,7 @@ - (void)call:(MXCall *)call stateDidChange:(MXCallState)state reason:(MXEvent *)
// Well, hide does not work. So, shrink the view to nil
self.localPreviewContainerView.frame = CGRectMake(0, 0, 0, 0);
}

// Check whether it is an actual state change or just a refresh
if (event)
{
// Turn on speaker on connected video call (ONLY when the built-in receiver is currently used)
call.audioToSpeaker = (call.isVideoCall && self.isBuiltInReceiverAudioOuput);
speakerButton.selected = call.audioToSpeaker;
}


break;
case MXCallStateInviteExpired:
// MXCallStateInviteExpired state is sent as an notification
Expand Down

0 comments on commit eb5e03c

Please sign in to comment.