From ba83a4ba3d6886b711278b8804566dcbe8ad7621 Mon Sep 17 00:00:00 2001 From: Marvin W Date: Fri, 6 Oct 2023 16:24:17 +0200 Subject: Calls: Correctly display information in partially encrypted calls This should never happen in practice, but now we will correctly display if a call has encrypted audio, but unencrypted video, or vice-versa. --- libdino/src/service/call_peer_state.vala | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'libdino') diff --git a/libdino/src/service/call_peer_state.vala b/libdino/src/service/call_peer_state.vala index c7fa04da..3a005e01 100644 --- a/libdino/src/service/call_peer_state.vala +++ b/libdino/src/service/call_peer_state.vala @@ -9,7 +9,7 @@ public class Dino.PeerState : Object { public signal void connection_ready(); public signal void session_terminated(bool we_terminated, string? reason_name, string? reason_text); - public signal void encryption_updated(Xep.Jingle.ContentEncryption? audio_encryption, Xep.Jingle.ContentEncryption? video_encryption, bool same); + public signal void encryption_updated(Xep.Jingle.ContentEncryption? audio_encryption, Xep.Jingle.ContentEncryption? video_encryption); public StreamInteractor stream_interactor; public CallState call_state; @@ -412,7 +412,7 @@ public class Dino.PeerState : Object { if ((audio_encryptions != null && audio_encryptions.is_empty) || (video_encryptions != null && video_encryptions.is_empty)) { call.encryption = Encryption.NONE; - encryption_updated(null, null, true); + encryption_updated(null, null); return; } @@ -462,7 +462,7 @@ public class Dino.PeerState : Object { encryption_keys_same = true; } - encryption_updated(audio_encryption, video_encryption, encryption_keys_same); + encryption_updated(audio_encryption, video_encryption); } } -- cgit v1.2.3-70-g09d2