show add to roster dialog when trying to start otr session

This commit is contained in:
iNPUTmice 2014-08-09 11:36:28 +02:00
parent a059dfab2c
commit a33bf0b4ae

View file

@ -302,7 +302,7 @@ public abstract class XmppActivity extends Activity {
public void selectPresence(final Conversation conversation,
final OnPresenceSelected listener) {
Contact contact = conversation.getContact();
if (contact == null) {
if (!contact.showInRoster()) {
showAddToRosterDialog(conversation);
} else {
Presences presences = contact.getPresences();