From 8f9640a9e1cbd1a6739ff73f8345a11e4afd3504 Mon Sep 17 00:00:00 2001 From: Daniel Gultsch Date: Sat, 27 Jan 2018 21:04:42 +0100 Subject: [PATCH] just switch to conversations & do not creat when 'creating' self contact --- .../eu/siacs/conversations/ui/StartConversationActivity.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main/java/eu/siacs/conversations/ui/StartConversationActivity.java b/src/main/java/eu/siacs/conversations/ui/StartConversationActivity.java index 1b2605d9ab..3bc9b77519 100644 --- a/src/main/java/eu/siacs/conversations/ui/StartConversationActivity.java +++ b/src/main/java/eu/siacs/conversations/ui/StartConversationActivity.java @@ -423,7 +423,10 @@ public class StartConversationActivity extends XmppActivity implements OnRosterU } final Contact contact = account.getRoster().getContact(contactJid); - if (contact.showInRoster()) { + if (contact.isSelf()) { + switchToConversation(contact,null); + return true; + } else if (contact.showInRoster()) { throw new EnterJidDialog.JidError(getString(R.string.contact_already_exists)); } else { xmppConnectionService.createContact(contact);