diff options
author | Christian Schneppe <christian@pix-art.de> | 2018-01-27 22:08:30 +0100 |
---|---|---|
committer | Christian Schneppe <christian@pix-art.de> | 2018-01-27 22:08:30 +0100 |
commit | 127d920e748df607bcd971f09fe2423210ee6835 (patch) | |
tree | 5c8c2480e6ec6ab66b9fb8ca1b912db63214c5b3 /src | |
parent | 54de9afe818ea6dce5d59f58646a4dbb70c17271 (diff) |
just switch to conversations & do not creat when 'creating' self contact
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/de/pixart/messenger/ui/StartConversationActivity.java | 5 |
1 files changed, 4 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 4b682d368..2f0f69ee8 100644 --- a/src/main/java/de/pixart/messenger/ui/StartConversationActivity.java +++ b/src/main/java/de/pixart/messenger/ui/StartConversationActivity.java @@ -442,7 +442,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); |