aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/de/pixart/messenger/ui/StartConversationActivity.java8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/main/java/de/pixart/messenger/ui/StartConversationActivity.java b/src/main/java/de/pixart/messenger/ui/StartConversationActivity.java
index a58c2e0c0..4e02df3ea 100644
--- a/src/main/java/de/pixart/messenger/ui/StartConversationActivity.java
+++ b/src/main/java/de/pixart/messenger/ui/StartConversationActivity.java
@@ -463,6 +463,12 @@ public class StartConversationActivity extends XmppActivity implements XmppConne
if (prev != null) {
ft.remove(prev);
}
+ boolean multiAccount = false;
+ try {
+ multiAccount = xmppConnectionService.multipleAccounts();
+ } catch (Exception e) {
+ e.printStackTrace();
+ }
ft.addToBackStack(null);
EnterJidDialog dialog = EnterJidDialog.newInstance(
mActivatedAccounts,
@@ -471,7 +477,7 @@ public class StartConversationActivity extends XmppActivity implements XmppConne
prefilledJid,
null,
invite == null || !invite.hasFingerprints(),
- xmppConnectionService.multipleAccounts()
+ multiAccount
);
dialog.setOnEnterJidDialogPositiveListener((accountJid, contactJid) -> {