just switch to conversations & do not creat when 'creating' self contact

This commit is contained in:
Daniel Gultsch 2018-01-27 21:04:42 +01:00
parent a33984acc5
commit 8f9640a9e1
1 changed files with 4 additions and 1 deletions

View File

@ -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);