From 6f9375e6ea524ac5b1d36b05a99e9b90a0ac866d Mon Sep 17 00:00:00 2001 From: Marvin W Date: Sat, 12 Feb 2022 15:14:15 +0100 Subject: Calls: Only show invite button when it's supported --- main/src/ui/call_window/call_window_controller.vala | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'main/src') 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) => { -- cgit v1.2.3-70-g09d2