aboutsummaryrefslogtreecommitdiff
path: root/main/src/ui
diff options
context:
space:
mode:
authorfiaxh <git@lightrise.org>2021-12-18 21:34:39 +0100
committerfiaxh <git@lightrise.org>2021-12-18 21:34:39 +0100
commit78bb2bbddaf587de77f67c404e8ed5083f16bf8a (patch)
tree0f61e0e2d4668fd58707423dcb44fa98856220be /main/src/ui
parent2b3d150949fe1b3c4107e497be7dac8e2ba734aa (diff)
downloaddino-78bb2bbddaf587de77f67c404e8ed5083f16bf8a.tar.gz
dino-78bb2bbddaf587de77f67c404e8ed5083f16bf8a.zip
Add calls in private MUCs via a MUJI MUC
Diffstat (limited to 'main/src/ui')
-rw-r--r--main/src/ui/conversation_titlebar/call_entry.vala18
1 files changed, 7 insertions, 11 deletions
diff --git a/main/src/ui/conversation_titlebar/call_entry.vala b/main/src/ui/conversation_titlebar/call_entry.vala
index 3b3a5b39..3fa399a6 100644
--- a/main/src/ui/conversation_titlebar/call_entry.vala
+++ b/main/src/ui/conversation_titlebar/call_entry.vala
@@ -115,17 +115,13 @@ namespace Dino.Ui {
return;
}
- if (conversation.type_ == Conversation.Type.CHAT) {
- Conversation conv_bak = conversation;
- bool audio_works = yield stream_interactor.get_module(Calls.IDENTITY).can_do_audio_calls_async(conversation);
- bool video_works = yield stream_interactor.get_module(Calls.IDENTITY).can_do_video_calls_async(conversation);
- if (conv_bak != conversation) return;
-
- visible = audio_works;
- video_button.visible = video_works;
- } else {
- visible = false;
- }
+ Conversation conv_bak = conversation;
+ bool audio_works = yield stream_interactor.get_module(Calls.IDENTITY).can_do_audio_calls_async(conversation);
+ bool video_works = yield stream_interactor.get_module(Calls.IDENTITY).can_do_video_calls_async(conversation);
+ if (conv_bak != conversation) return;
+
+ visible = audio_works;
+ video_button.visible = video_works;
}
public new void unset_conversation() { }