aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2018-04-16 22:22:24 +0300
committerGravatar Vitaly Takmazov2018-04-16 22:22:24 +0300
commit495026b724562f1ce64a31937039aa95a01fb3c0 (patch)
tree11aef3a9deea26667fd84dfcdf2cfadeed4a6b69
parent516b3cf0032a6204711dc85cd42d2bf41b84e999 (diff)
server: ignore /logout from telegram
-rw-r--r--juick-server/src/main/java/com/juick/server/TelegramBotManager.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/juick-server/src/main/java/com/juick/server/TelegramBotManager.java b/juick-server/src/main/java/com/juick/server/TelegramBotManager.java
index 7a377d5a..5bbfec91 100644
--- a/juick-server/src/main/java/com/juick/server/TelegramBotManager.java
+++ b/juick-server/src/main/java/com/juick/server/TelegramBotManager.java
@@ -158,6 +158,7 @@ public class TelegramBotManager implements NotificationListener {
|| text.equalsIgnoreCase("PING")
|| text.equalsIgnoreCase("HELP")
|| text.equalsIgnoreCase("/login")
+ || text.equalsIgnoreCase("/logout")
|| text.equalsIgnoreCase("/start")
|| text.equalsIgnoreCase("/help")) {
String msgUrl = "http://juick.com/login?hash=" + userService.getHashByUID(user_from.getUid());