Skip to content

Commit

Permalink
Merge pull request #1118 from matrix-org/voip_change_hold_direction
Browse files Browse the repository at this point in the history
VoIP: Change Hold Direction
  • Loading branch information
ismailgulek committed Jun 10, 2021
2 parents 6cf7a91 + f10e3ec commit 09b029d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGES.rst
Expand Up @@ -6,6 +6,7 @@ Changes to be released in next version

🙌 Improvements
* MXRoomLastMessage: Use MXKeyProvider methods to encrypt/decrypt last message dictionary.
* VoIP: Change hold direction to send-only.

🐛 Bugfix
*
Expand Down
2 changes: 1 addition & 1 deletion MatrixSDKExtensions/VoIP/Jingle/MXJingleCallStackCall.m
Expand Up @@ -124,7 +124,7 @@ - (void)hold:(BOOL)hold
[peerConnection.transceivers enumerateObjectsUsingBlock:^(RTCRtpTransceiver * _Nonnull obj, NSUInteger idx, BOOL * _Nonnull stop) {
obj.sender.track.isEnabled = !hold;
obj.receiver.track.isEnabled = !hold;
[obj setDirection:hold ? RTCRtpTransceiverDirectionInactive : RTCRtpTransceiverDirectionSendRecv error:NULL];
[obj setDirection:hold ? RTCRtpTransceiverDirectionSendOnly : RTCRtpTransceiverDirectionSendRecv error:NULL];
}];

RTCMediaConstraints *mediaConstraints;
Expand Down

0 comments on commit 09b029d

Please sign in to comment.