diff options
author | Vitaly Takmazov | 2018-01-18 15:16:14 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2018-01-18 15:16:14 +0300 |
commit | 230e5e80d9b1e3ca4535fb0dbba19246d799a737 (patch) | |
tree | 78841f10823c29403bda6877b32a6836ad95ba96 /juick-www/src/main/java/com/juick/www | |
parent | 87455349439476000bcc78c9bca5ff8fd5fc2a6c (diff) |
tg: delete also from chat
Diffstat (limited to 'juick-www/src/main/java/com/juick/www')
-rw-r--r-- | juick-www/src/main/java/com/juick/www/controllers/Settings.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/juick-www/src/main/java/com/juick/www/controllers/Settings.java b/juick-www/src/main/java/com/juick/www/controllers/Settings.java index a2459654..5eb36b36 100644 --- a/juick-www/src/main/java/com/juick/www/controllers/Settings.java +++ b/juick-www/src/main/java/com/juick/www/controllers/Settings.java @@ -46,6 +46,7 @@ import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import java.io.IOException; import java.util.Arrays; +import java.util.Collections; import java.util.List; import java.util.stream.Collectors; import java.util.stream.IntStream; @@ -237,6 +238,9 @@ public class Settings { break; case "telegram-del": telegramService.deleteTelegramUser(visitor.getUid()); + telegramService.getTelegramIdentifiers(Collections.singletonList(visitor)).forEach(t -> { + telegramService.deleteChat(t); + }); result = "<p><a href=\"/settings\">Back</a></p>"; break; case "facebook-disable": |