aboutsummaryrefslogtreecommitdiff
path: root/juick-xmpp/src/main/java/com/juick/components
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2017-10-19 10:37:30 +0300
committerGravatar Vitaly Takmazov2017-10-19 10:37:30 +0300
commita4ec3fdb1b7d2c7188fa24ea4826c928f4e7b22a (patch)
tree229cb645cb8bcefb943972b60ffa81727f6d5f8b /juick-xmpp/src/main/java/com/juick/components
parent93cba5380e02cee6d1ce0fe351f98daba0dc798e (diff)
xmpp: instruction for inactive jids
Diffstat (limited to 'juick-xmpp/src/main/java/com/juick/components')
-rw-r--r--juick-xmpp/src/main/java/com/juick/components/JuickBot.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/juick-xmpp/src/main/java/com/juick/components/JuickBot.java b/juick-xmpp/src/main/java/com/juick/components/JuickBot.java
index 5df24d16..8a82063a 100644
--- a/juick-xmpp/src/main/java/com/juick/components/JuickBot.java
+++ b/juick-xmpp/src/main/java/com/juick/components/JuickBot.java
@@ -138,6 +138,9 @@ public class JuickBot implements StanzaListener, AutoCloseable {
reply.setFrom(p.getTo().withResource(jid.getResource()));
reply.setTo(p.getFrom());
reply.setPriority((byte)10);
+ if (!userService.getActiveJIDs().contains(p.getFrom().asBareJid().toEscapedString())) {
+ reply.setStatus("Send ON to enable notifications");
+ }
xmpp.sendOut(ClientPresence.from(reply));
} else {
Presence reply = new Presence();