aboutsummaryrefslogtreecommitdiffstats
path: root/src/eu/siacs/conversations
diff options
context:
space:
mode:
authoriNPUTmice <daniel@gultsch.de>2014-08-09 11:36:28 +0200
committeriNPUTmice <daniel@gultsch.de>2014-08-09 11:36:28 +0200
commita33bf0b4ae4178680d6677ffe4696f2bccfac490 (patch)
tree67f2f04df7b69c83f23971effb2c27e105937faf /src/eu/siacs/conversations
parenta059dfab2c53921e99a79a9e7ec9f4503bfac082 (diff)
show add to roster dialog when trying to start otr session
Diffstat (limited to 'src/eu/siacs/conversations')
-rw-r--r--src/eu/siacs/conversations/ui/XmppActivity.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/eu/siacs/conversations/ui/XmppActivity.java b/src/eu/siacs/conversations/ui/XmppActivity.java
index 3bac32e2b..592430c5a 100644
--- a/src/eu/siacs/conversations/ui/XmppActivity.java
+++ b/src/eu/siacs/conversations/ui/XmppActivity.java
@@ -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();