diff options
author | iNPUTmice <daniel@gultsch.de> | 2014-09-06 18:21:31 +0200 |
---|---|---|
committer | iNPUTmice <daniel@gultsch.de> | 2014-09-06 18:21:31 +0200 |
commit | 0e5a0a07fd32d185d2d4c43df9494fafcace9208 (patch) | |
tree | e51be0fc1b2cf156327274a66589f2709c9f1e09 /src/eu/siacs/conversations/services/XmppConnectionService.java | |
parent | dc0213710640911a796880fcd68a75d2b576918d (diff) |
made otr a little bit more solid when there is no presence subscription
Diffstat (limited to 'src/eu/siacs/conversations/services/XmppConnectionService.java')
-rw-r--r-- | src/eu/siacs/conversations/services/XmppConnectionService.java | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/eu/siacs/conversations/services/XmppConnectionService.java b/src/eu/siacs/conversations/services/XmppConnectionService.java index 9e171751..da7ffb4d 100644 --- a/src/eu/siacs/conversations/services/XmppConnectionService.java +++ b/src/eu/siacs/conversations/services/XmppConnectionService.java @@ -516,7 +516,7 @@ public class XmppConnectionService extends Service { if (message.getEncryption() == Message.ENCRYPTION_OTR) { if (!conv.hasValidOtrSession() && (message.getPresence() != null)) { - conv.startOtrSession(getApplicationContext(), + conv.startOtrSession(this, message.getPresence(), true); message.setStatus(Message.STATUS_WAITING); } else if (conv.hasValidOtrSession() @@ -536,7 +536,7 @@ public class XmppConnectionService extends Service { if (message.getEncryption() == Message.ENCRYPTION_OTR) { if (!conv.hasValidOtrSession() && (message.getPresence() != null)) { - conv.startOtrSession(getApplicationContext(), + conv.startOtrSession(this, message.getPresence(), true); message.setStatus(Message.STATUS_WAITING); } else if (conv.hasValidOtrSession() @@ -577,7 +577,7 @@ public class XmppConnectionService extends Service { .getUserID()); } else if (!conv.hasValidOtrSession() && message.getPresence() != null) { - conv.startOtrSession(getApplicationContext(), + conv.startOtrSession(this, message.getPresence(), false); } } @@ -617,13 +617,13 @@ public class XmppConnectionService extends Service { if ((message.getPresence() != null) && (presences.has(message.getPresence()))) { message.getConversation().startOtrSession( - getApplicationContext(), message.getPresence(), + this, message.getPresence(), true); } else { if (presences.size() == 1) { String presence = presences.asStringArray()[0]; message.getConversation().startOtrSession( - getApplicationContext(), presence, true); + this, presence, true); } } } else { |