aboutsummaryrefslogtreecommitdiff
path: root/juick-xmpp/src
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2018-01-31 14:33:54 +0300
committerGravatar Vitaly Takmazov2018-01-31 14:33:54 +0300
commita193063b3c221983a489c2006aad1c4ec7cc681f (patch)
tree2cc201d2f80b4fccc9f1502ba6f3d35f63d9dffb /juick-xmpp/src
parent6bd4e6c5bb43ea077ad678b700a6bde249c8c0c7 (diff)
xmpp: ON/OFF for bare jid
Diffstat (limited to 'juick-xmpp/src')
-rw-r--r--juick-xmpp/src/main/java/com/juick/components/JuickBot.java6
1 files changed, 3 insertions, 3 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 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());