aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/com
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2023-01-12 10:58:49 +0300
committerGravatar Vitaly Takmazov2023-01-12 10:58:49 +0300
commit84f6e27f7e563bcb58815575546c52c944f0cd3e (patch)
treeea38be4cbcd6e6c67df20863136bb12d6303f613 /src/main/java/com
parent41f2e9e0d38be420754ce36ce9578d753b4a3a74 (diff)
Telegram: fix delivery to anonymous users
Diffstat (limited to 'src/main/java/com')
-rw-r--r--src/main/java/com/juick/TelegramBotManager.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/com/juick/TelegramBotManager.java b/src/main/java/com/juick/TelegramBotManager.java
index b92704a0..9d0b5862 100644
--- a/src/main/java/com/juick/TelegramBotManager.java
+++ b/src/main/java/com/juick/TelegramBotManager.java
@@ -449,7 +449,7 @@ public class TelegramBotManager implements NotificationListener {
users.forEach(c -> telegramNotify(c, msg, jmsg));
// anonymous
- chats.stream().filter(u -> userService.getUserByTelegramId(u).isPresent()).forEach(c -> telegramNotify(c, msg, jmsg));
+ chats.stream().filter(u -> userService.getUserByTelegramId(u).isEmpty()).forEach(c -> telegramNotify(c, msg, jmsg));
}
}