aboutsummaryrefslogtreecommitdiff
path: root/juick-api
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2018-01-18 15:11:32 +0300
committerGravatar Vitaly Takmazov2018-01-18 15:11:32 +0300
commit87455349439476000bcc78c9bca5ff8fd5fc2a6c (patch)
tree07d4de155b8c15d392d0b16be068f3a1ec58096c /juick-api
parent850d9616b3588cf8473d7d93280df69ea0f19c0c (diff)
tg: fix user deletion on 403
Diffstat (limited to 'juick-api')
-rw-r--r--juick-api/src/main/java/com/juick/api/TelegramBotManager.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/juick-api/src/main/java/com/juick/api/TelegramBotManager.java b/juick-api/src/main/java/com/juick/api/TelegramBotManager.java
index c2eeefd3..54dab247 100644
--- a/juick-api/src/main/java/com/juick/api/TelegramBotManager.java
+++ b/juick-api/src/main/java/com/juick/api/TelegramBotManager.java
@@ -255,7 +255,7 @@ public class TelegramBotManager implements ApplicationListener<MessageEvent> {
if (userId > 0) {
User userToDelete = userService.getUserByUID(userId)
.orElse(new User());
- boolean status = telegramService.deleteTelegramUser(chatId.intValue());
+ boolean status = telegramService.deleteTelegramUser(userToDelete.getUid());
logger.info("deleting telegram id of @{} : {}", userToDelete.getName(), status);
boolean chatStatus = telegramService.deleteChat(chatId);
logger.info("deleting telegram chat {} : {}", chatId, chatStatus);