diff options
author | 2018-01-12 12:24:20 +0300 | |
---|---|---|
committer | 2018-01-12 12:24:20 +0300 | |
commit | 45a1231bfe72c7853aa1cbbb882ec33df11fe320 (patch) | |
tree | 406fecdf948a9d0547f7a56499706a8038d70511 /juick-api/src/main/java/com/juick/api/TelegramBotManager.java | |
parent | 40b392f1d63f6aaa8794beaff4c0432dd29f1858 (diff) |
prepare to handle PMs from ws components
Diffstat (limited to 'juick-api/src/main/java/com/juick/api/TelegramBotManager.java')
-rw-r--r-- | juick-api/src/main/java/com/juick/api/TelegramBotManager.java | 2 |
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 0417afe1..801bb0a7 100644 --- a/juick-api/src/main/java/com/juick/api/TelegramBotManager.java +++ b/juick-api/src/main/java/com/juick/api/TelegramBotManager.java @@ -86,7 +86,7 @@ public class TelegramBotManager implements ApplicationListener<MessageEvent> { public void onApplicationEvent(@Nonnull MessageEvent event) { com.juick.Message jmsg = event.getMessage(); String msgUrl = formatUrl(jmsg); - if (jmsg.getRid() == 0) { + if (jmsg.getMid() > 0 && jmsg.getRid() == 0) { String msg = String.format("[%s](%s) %s", MSG_LINK, msgUrl, formatPost(jmsg)); List<Long> users = telegramService.getTelegramIdentifiers(subscriptionService.getSubscribedUsers(jmsg.getUser().getUid(), jmsg.getMid())); |