From a193063b3c221983a489c2006aad1c4ec7cc681f Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Wed, 31 Jan 2018 14:33:54 +0300 Subject: xmpp: ON/OFF for bare jid --- juick-xmpp/src/main/java/com/juick/components/JuickBot.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'juick-xmpp/src/main/java/com/juick/components') 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 f0bac1f4..ad21b577 100644 --- a/juick-xmpp/src/main/java/com/juick/components/JuickBot.java +++ b/juick-xmpp/src/main/java/com/juick/components/JuickBot.java @@ -583,13 +583,13 @@ public class JuickBot implements StanzaListener, AutoCloseable { String retValUpdated; if (input[0].toLowerCase().equals("on")) { newStatus = UserService.ActiveStatus.Active; - retValUpdated = "Notifications are activated for " + from.toEscapedString(); + retValUpdated = "Notifications are activated for " + from.asBareJid().toEscapedString(); } else { newStatus = UserService.ActiveStatus.Inactive; - retValUpdated = "Notifications are disabled for " + from.toEscapedString(); + retValUpdated = "Notifications are disabled for " + from.asBareJid().toEscapedString(); } - if (userService.setActiveStatusForJID(from.toEscapedString(), newStatus)) { + if (userService.setActiveStatusForJID(from.asBareJid().toEscapedString(), newStatus)) { return retValUpdated; } else { return String.format("Subscriptions status for %s was not changed", from.toEscapedString()); -- cgit v1.2.3