diff options
author | fiaxh <git@lightrise.org> | 2021-04-01 12:03:04 +0200 |
---|---|---|
committer | fiaxh <git@lightrise.org> | 2021-04-01 12:03:04 +0200 |
commit | 3454201e5a3da058ccbef0bbaf467599912a8c38 (patch) | |
tree | 6ff60c4d923e468135a86a9e8a5fae926c349b41 /main | |
parent | b63a20f9189026a77ccc1769a4ab366d48f63233 (diff) | |
download | dino-3454201e5a3da058ccbef0bbaf467599912a8c38.tar.gz dino-3454201e5a3da058ccbef0bbaf467599912a8c38.zip |
Use outgoing JMI if contact has supporting device
Diffstat (limited to 'main')
-rw-r--r-- | main/src/ui/conversation_titlebar/call_entry.vala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/main/src/ui/conversation_titlebar/call_entry.vala b/main/src/ui/conversation_titlebar/call_entry.vala index 1ac4dd83..5e28ecbe 100644 --- a/main/src/ui/conversation_titlebar/call_entry.vala +++ b/main/src/ui/conversation_titlebar/call_entry.vala @@ -116,9 +116,9 @@ namespace Dino.Ui { private async void update_visibility() { if (conversation.type_ == Conversation.Type.CHAT) { Conversation conv_bak = conversation; - Gee.List<Jid>? resources = yield stream_interactor.get_module(Calls.IDENTITY).get_call_resources(conversation); + bool can_do_calls = yield stream_interactor.get_module(Calls.IDENTITY).can_do_calls(conversation); if (conv_bak != conversation) return; - visible = resources != null && resources.size > 0; + visible = can_do_calls; } else { visible = false; } |