diff options
author | Vitaly Takmazov | 2023-01-12 10:58:49 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2023-01-12 10:58:49 +0300 |
commit | 84f6e27f7e563bcb58815575546c52c944f0cd3e (patch) | |
tree | ea38be4cbcd6e6c67df20863136bb12d6303f613 /src | |
parent | 41f2e9e0d38be420754ce36ce9578d753b4a3a74 (diff) |
Telegram: fix delivery to anonymous users
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/com/juick/TelegramBotManager.java | 2 |
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)); } } |