diff options
author | Vitaly Takmazov | 2018-11-21 10:00:25 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2018-11-21 10:00:25 +0300 |
commit | 366a0192fee0d2bd8fc13bed47e3a3e61ebb5f90 (patch) | |
tree | 3eabf1199934c5a8f98f233c7f86ee4cc212815e /src/main/java/com/juick/server/TelegramBotManager.java | |
parent | 48b3585786f463592b67f825394ac62cdeaab787 (diff) |
Mark all messages read when receiving command from XMPP and Telegram
Diffstat (limited to 'src/main/java/com/juick/server/TelegramBotManager.java')
-rw-r--r-- | src/main/java/com/juick/server/TelegramBotManager.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main/java/com/juick/server/TelegramBotManager.java b/src/main/java/com/juick/server/TelegramBotManager.java index 82114fb5..bf2f5a84 100644 --- a/src/main/java/com/juick/server/TelegramBotManager.java +++ b/src/main/java/com/juick/server/TelegramBotManager.java @@ -227,6 +227,7 @@ public class TelegramBotManager implements NotificationListener { } } } + messagesService.getUnread(user_from).forEach(mid -> messagesService.setRead(user_from, mid)); } else { List<Long> chats = telegramService.getAnonymous(); if (!chats.contains(message.chat().id())) { |