aboutsummaryrefslogtreecommitdiff
path: root/juick-api/src/main/java/com/juick/api/MessengerManager.java
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2018-01-12 12:24:20 +0300
committerGravatar Vitaly Takmazov2018-01-12 12:24:20 +0300
commit45a1231bfe72c7853aa1cbbb882ec33df11fe320 (patch)
tree406fecdf948a9d0547f7a56499706a8038d70511 /juick-api/src/main/java/com/juick/api/MessengerManager.java
parent40b392f1d63f6aaa8794beaff4c0432dd29f1858 (diff)
prepare to handle PMs from ws components
Diffstat (limited to 'juick-api/src/main/java/com/juick/api/MessengerManager.java')
-rw-r--r--juick-api/src/main/java/com/juick/api/MessengerManager.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/juick-api/src/main/java/com/juick/api/MessengerManager.java b/juick-api/src/main/java/com/juick/api/MessengerManager.java
index 2008144a..75c496c8 100644
--- a/juick-api/src/main/java/com/juick/api/MessengerManager.java
+++ b/juick-api/src/main/java/com/juick/api/MessengerManager.java
@@ -105,7 +105,7 @@ public class MessengerManager implements ApplicationListener<MessageEvent> {
@Override
public void onApplicationEvent(@Nonnull MessageEvent event) {
Message msg = event.getMessage();
- if (msg.getRid() == 0) {
+ if (msg.getMid() > 0 && msg.getRid() == 0) {
String subject = formatPost(msg);
subscriptionService.getSubscribedUsers(msg.getUser().getUid(), msg.getMid())
.forEach(user -> messengerService.getSenderId(user)