just switch to conversations & do not creat when 'creating' self contact
This commit is contained in:
parent
a33984acc5
commit
8f9640a9e1
|
@ -423,7 +423,10 @@ public class StartConversationActivity extends XmppActivity implements OnRosterU
|
||||||
}
|
}
|
||||||
|
|
||||||
final Contact contact = account.getRoster().getContact(contactJid);
|
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));
|
throw new EnterJidDialog.JidError(getString(R.string.contact_already_exists));
|
||||||
} else {
|
} else {
|
||||||
xmppConnectionService.createContact(contact);
|
xmppConnectionService.createContact(contact);
|
||||||
|
|
Loading…
Reference in New Issue