aboutsummaryrefslogtreecommitdiff
path: root/juick-www/src/main/java/com/juick/www
diff options
context:
space:
mode:
Diffstat (limited to 'juick-www/src/main/java/com/juick/www')
-rw-r--r--juick-www/src/main/java/com/juick/www/controllers/Settings.java4
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":