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/generator | |
parent | f880473435b6c3167edc727eacccef377643a8c5 (diff) |
don't resume old session when changing resource
Diffstat (limited to 'src/main/java/eu/siacs/conversations/generator')
-rw-r--r-- | src/main/java/eu/siacs/conversations/generator/PresenceGenerator.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/main/java/eu/siacs/conversations/generator/PresenceGenerator.java b/src/main/java/eu/siacs/conversations/generator/PresenceGenerator.java index 1e896724..526005f3 100644 --- a/src/main/java/eu/siacs/conversations/generator/PresenceGenerator.java +++ b/src/main/java/eu/siacs/conversations/generator/PresenceGenerator.java @@ -54,4 +54,11 @@ public class PresenceGenerator extends AbstractGenerator { } return packet; } + + public PresencePacket sendOfflinePresence(Account account) { + PresencePacket packet = new PresencePacket(); + packet.setFrom(account.getJid()); + packet.setAttribute("type","unavailable"); + return packet; + } }
\ No newline at end of file |