diff options
author | iNPUTmice <daniel@gultsch.de> | 2015-04-09 12:46:54 +0200 |
---|---|---|
committer | iNPUTmice <daniel@gultsch.de> | 2015-04-09 12:46:54 +0200 |
commit | 332fe0fd194a80501cf935f22faed645f3032b57 (patch) | |
tree | 7733821f5ce527d08f3f828eaabe56e15df59c0e /src/main/java/eu/siacs/conversations/services | |
parent | f880473435b6c3167edc727eacccef377643a8c5 (diff) |
don't resume old session when changing resource
Diffstat (limited to 'src/main/java/eu/siacs/conversations/services')
-rw-r--r-- | src/main/java/eu/siacs/conversations/services/XmppConnectionService.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/main/java/eu/siacs/conversations/services/XmppConnectionService.java b/src/main/java/eu/siacs/conversations/services/XmppConnectionService.java index 9badbbd8..669ad62c 100644 --- a/src/main/java/eu/siacs/conversations/services/XmppConnectionService.java +++ b/src/main/java/eu/siacs/conversations/services/XmppConnectionService.java @@ -1701,6 +1701,7 @@ public class XmppConnectionService extends Service implements OnPhoneContactsLoa } } } + sendOfflinePresence(account); } account.getXmppConnection().disconnect(force); } @@ -2261,6 +2262,10 @@ public class XmppConnectionService extends Service implements OnPhoneContactsLoa sendPresencePacket(account, mPresenceGenerator.sendPresence(account)); } + public void sendOfflinePresence(final Account account) { + sendPresencePacket(account, mPresenceGenerator.sendOfflinePresence(account)); + } + public MessageGenerator getMessageGenerator() { return this.mMessageGenerator; } |