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

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