aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/com
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/com')
-rw-r--r--src/main/java/com/juick/XMPPManager.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/main/java/com/juick/XMPPManager.java b/src/main/java/com/juick/XMPPManager.java
index a334ecf9..624fe73a 100644
--- a/src/main/java/com/juick/XMPPManager.java
+++ b/src/main/java/com/juick/XMPPManager.java
@@ -542,6 +542,13 @@ public class XMPPManager implements NotificationListener {
reply.setTo(p.getFrom());
reply.setType(Presence.Type.UNSUBSCRIBED);
xmpp.send(ClientPresence.from(reply));
+ } else if (p.getType().equals(Presence.Type.ERROR)) {
+ StanzaError error = p.getError();
+ if (error != null && error.getCondition().equals(Condition.REMOTE_SERVER_NOT_FOUND)) {
+ if (userService.setActiveStatusForJID(p.getFrom().toEscapedString(), UserService.ActiveStatus.Inactive)) {
+ logger.info("{} is inactive now", p.getFrom());
+ }
+ }
}
}