diff options
Diffstat (limited to 'src/main/java/de')
-rw-r--r-- | src/main/java/de/pixart/messenger/ui/StartConversationActivity.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/main/java/de/pixart/messenger/ui/StartConversationActivity.java b/src/main/java/de/pixart/messenger/ui/StartConversationActivity.java index 358c9dff7..06ab237df 100644 --- a/src/main/java/de/pixart/messenger/ui/StartConversationActivity.java +++ b/src/main/java/de/pixart/messenger/ui/StartConversationActivity.java @@ -183,11 +183,17 @@ public class StartConversationActivity extends XmppActivity implements XmppConne if (contacts.size() == 1) { openConversationForContact((Contact) contacts.get(0)); return true; + } else if (contacts.size() == 0 && conferences.size() == 1) { + openConversationsForBookmark((Bookmark) conferences.get(0)); + return true; } } else { if (conferences.size() == 1) { openConversationsForBookmark((Bookmark) conferences.get(0)); return true; + } else if (conferences.size() == 0 && contacts.size() == 1) { + openConversationForContact((Contact) contacts.get(0)); + return true; } } SoftKeyboardUtils.hideSoftKeyboard(StartConversationActivity.this); |