From f7f6e8dfd59844498847b3a61a31837486d6c28a Mon Sep 17 00:00:00 2001 From: Daniel Gultsch Date: Mon, 5 Jun 2017 10:18:02 +0200 Subject: [PATCH] make launching app shortcuts work with disabled accounts --- .../eu/siacs/conversations/services/XmppConnectionService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/eu/siacs/conversations/services/XmppConnectionService.java b/src/main/java/eu/siacs/conversations/services/XmppConnectionService.java index b780c9c67..3121eb58d 100644 --- a/src/main/java/eu/siacs/conversations/services/XmppConnectionService.java +++ b/src/main/java/eu/siacs/conversations/services/XmppConnectionService.java @@ -3619,7 +3619,7 @@ public class XmppConnectionService extends Service { public List findContacts(Jid jid, String accountJid) { ArrayList contacts = new ArrayList<>(); for (Account account : getAccounts()) { - if (!account.isOptionSet(Account.OPTION_DISABLED) + if ((!account.isOptionSet(Account.OPTION_DISABLED) || accountJid != null) && (accountJid == null || accountJid.equals(account.getJid().toBareJid().toString()))) { Contact contact = account.getRoster().getContactFromRoster(jid); if (contact != null) {