~singpolyma/cheogram-android

47cc06365c761132061572a7f4d3810919921329 — Stephen Paul Weber 2 years ago 5b94198
Detect a video call in a consistent way
1 files changed, 2 insertions(+), 3 deletions(-)

M src/main/java/eu/siacs/conversations/ui/RtpSessionActivity.java
M src/main/java/eu/siacs/conversations/ui/RtpSessionActivity.java => src/main/java/eu/siacs/conversations/ui/RtpSessionActivity.java +2 -3
@@ 208,9 208,8 @@ public class RtpSessionActivity extends XmppActivity implements XmppConnectionSe
    private boolean isAudioOnlyConversation() {
        final JingleRtpConnection connection =
                this.rtpConnectionReference != null ? this.rtpConnectionReference.get() : null;
        return connection != null &&
                connection.getEndUserState() == RtpEndUserState.CONNECTED &&
                !connection.isVideoEnabled();

        return connection != null && !connection.getMedia().contains(Media.VIDEO);
    }

    private void switchToConversation() {