aboutsummaryrefslogtreecommitdiff
path: root/libdino/src
diff options
context:
space:
mode:
authorMarvin W <git@larma.de>2023-10-06 16:24:17 +0200
committerMarvin W <git@larma.de>2024-04-28 21:35:07 +0200
commitba83a4ba3d6886b711278b8804566dcbe8ad7621 (patch)
tree8b2fc2674e36a877b4227e73c253b4ea496e7cfd /libdino/src
parent657502955567dd538e56f300e075c7db52e25d74 (diff)
downloaddino-ba83a4ba3d6886b711278b8804566dcbe8ad7621.tar.gz
dino-ba83a4ba3d6886b711278b8804566dcbe8ad7621.zip
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.
Diffstat (limited to 'libdino/src')
-rw-r--r--libdino/src/service/call_peer_state.vala6
1 files changed, 3 insertions, 3 deletions
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);
}
}