aboutsummaryrefslogtreecommitdiff
path: root/main/src/ui/conversation_titlebar
diff options
context:
space:
mode:
authorfiaxh <git@lightrise.org>2021-04-01 12:03:04 +0200
committerfiaxh <git@lightrise.org>2021-04-01 12:03:04 +0200
commit3454201e5a3da058ccbef0bbaf467599912a8c38 (patch)
tree6ff60c4d923e468135a86a9e8a5fae926c349b41 /main/src/ui/conversation_titlebar
parentb63a20f9189026a77ccc1769a4ab366d48f63233 (diff)
downloaddino-3454201e5a3da058ccbef0bbaf467599912a8c38.tar.gz
dino-3454201e5a3da058ccbef0bbaf467599912a8c38.zip
Use outgoing JMI if contact has supporting device
Diffstat (limited to 'main/src/ui/conversation_titlebar')
-rw-r--r--main/src/ui/conversation_titlebar/call_entry.vala4
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;
}