From 0c9e67eb323189993b48d71e866b2c4f97270e5e Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Wed, 31 Jan 2018 14:16:56 +0300 Subject: xmpp: fix ON/OFF --- juick-xmpp/src/main/java/com/juick/components/JuickBot.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'juick-xmpp/src/main/java/com/juick') 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 2b1c7ac9..44755174 100644 --- a/juick-xmpp/src/main/java/com/juick/components/JuickBot.java +++ b/juick-xmpp/src/main/java/com/juick/components/JuickBot.java @@ -589,7 +589,7 @@ public class JuickBot implements StanzaListener, AutoCloseable { retValUpdated = "Notifications are disabled for " + user.getJid(); } - if (userService.setActiveStatusForJID(user.getJid(), newStatus)) { + if (userService.setActiveStatusForJID(from.toEscapedString(), newStatus)) { return retValUpdated; } else { return String.format("Subscriptions status for %s was not changed", user.getJid()); -- cgit v1.2.3