diff options
author | fiaxh <git@lightrise.org> | 2021-12-20 00:15:05 +0100 |
---|---|---|
committer | fiaxh <git@lightrise.org> | 2021-12-23 00:19:26 +0100 |
commit | f0c7dd0682fec8d72c644d8e54896de7bdc40ddb (patch) | |
tree | 0e275aa1fab7004cef7c92e16721d493b18bf8b6 /main/src/ui/conversation_titlebar | |
parent | ff4e2540ae3bfab6873beb7e03ef5c6a5b9da1da (diff) | |
download | dino-f0c7dd0682fec8d72c644d8e54896de7bdc40ddb.tar.gz dino-f0c7dd0682fec8d72c644d8e54896de7bdc40ddb.zip |
UI + libdino: Improve MUJI calls from MUC
- Move calls from ICE-thead onto main thread
- Identify Call.ourpart as MUC nick if in MUC
- Keep track of the initiator of a call
Diffstat (limited to 'main/src/ui/conversation_titlebar')
-rw-r--r-- | main/src/ui/conversation_titlebar/call_entry.vala | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/main/src/ui/conversation_titlebar/call_entry.vala b/main/src/ui/conversation_titlebar/call_entry.vala index 3fa399a6..3b3a5b39 100644 --- a/main/src/ui/conversation_titlebar/call_entry.vala +++ b/main/src/ui/conversation_titlebar/call_entry.vala @@ -115,13 +115,17 @@ namespace Dino.Ui { return; } - 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; + 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; + } } public new void unset_conversation() { } |