From 9afafe387aca9f8793f5a9e3d76d841ada7658b7 Mon Sep 17 00:00:00 2001 From: Daniel Gultsch Date: Sun, 29 May 2016 20:21:53 +0200 Subject: fix creation of conferences with 1 participant --- src/main/java/eu/siacs/conversations/ui/StartConversationActivity.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/java/eu/siacs/conversations/ui/StartConversationActivity.java b/src/main/java/eu/siacs/conversations/ui/StartConversationActivity.java index 9af83edd8..548682dfb 100644 --- a/src/main/java/eu/siacs/conversations/ui/StartConversationActivity.java +++ b/src/main/java/eu/siacs/conversations/ui/StartConversationActivity.java @@ -699,7 +699,6 @@ public class StartConversationActivity extends XmppActivity implements OnRosterU if (xmppConnectionServiceBound) { this.mPostponedActivityResult = null; if (requestCode == REQUEST_CREATE_CONFERENCE) { - Log.d(Config.LOGTAG,"account jid: "+ intent.getStringExtra(EXTRA_ACCOUNT)); Account account = extractAccount(intent); final String subject = intent.getStringExtra("subject"); List jids = new ArrayList<>(); @@ -719,7 +718,7 @@ public class StartConversationActivity extends XmppActivity implements OnRosterU //ignored } } - if (account != null && jids.size() > 1) { + if (account != null && jids.size() > 0) { xmppConnectionService.createAdhocConference(account, subject, jids, mAdhocConferenceCallback); mToast = Toast.makeText(this, R.string.creating_conference,Toast.LENGTH_LONG); mToast.show(); -- cgit v1.2.3