aboutsummaryrefslogtreecommitdiff
path: root/main/src
diff options
context:
space:
mode:
authorMarvin W <git@larma.de>2022-02-12 15:14:15 +0100
committerMarvin W <git@larma.de>2022-02-12 15:14:15 +0100
commit6f9375e6ea524ac5b1d36b05a99e9b90a0ac866d (patch)
tree0b6fd2c3ceb627f12e9a8132d69f6de122c1fcbf /main/src
parent369d0c79d7272b4059c39ecedb10a62121bfbe56 (diff)
downloaddino-6f9375e6ea524ac5b1d36b05a99e9b90a0ac866d.tar.gz
dino-6f9375e6ea524ac5b1d36b05a99e9b90a0ac866d.zip
Calls: Only show invite button when it's supported
Diffstat (limited to 'main/src')
-rw-r--r--main/src/ui/call_window/call_window_controller.vala6
1 files changed, 3 insertions, 3 deletions
diff --git a/main/src/ui/call_window/call_window_controller.vala b/main/src/ui/call_window/call_window_controller.vala
index e929aedc..6ea69287 100644
--- a/main/src/ui/call_window/call_window_controller.vala
+++ b/main/src/ui/call_window/call_window_controller.vala
@@ -139,14 +139,14 @@ public class Dino.Ui.CallWindowController : Object {
peer_states[peer_id] = peer_state;
peer_state.connection_ready.connect(() => {
- call_window.set_status(peer_state.internal_id, "");
+ call_window.set_status(peer_id, "");
if (participant_widgets.size == 1) {
// This is the first peer.
// If it can do MUJI, show invite button.
call_state.can_convert_into_groupcall.begin((_, res) => {
bool can_convert = call_state.can_convert_into_groupcall.end(res);
- participant_widgets.values.@foreach((widget) => widget.may_show_invite_button = true);
+ participant_widgets[peer_id].may_show_invite_button = can_convert;
});
call_plugin.devices_changed.connect((media, incoming) => {
@@ -174,7 +174,7 @@ public class Dino.Ui.CallWindowController : Object {
});
peer_state.info_received.connect((session_info) => {
if (session_info == Xmpp.Xep.JingleRtp.CallSessionInfo.RINGING) {
- call_window.set_status(peer_state.internal_id, "ringing");
+ call_window.set_status(peer_id, "ringing");
}
});
peer_state.encryption_updated.connect((audio_encryption, video_encryption, same) => {