From de22e88e68bdcdb427d079f835cc4fae8cacd0dd Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Mon, 23 Apr 2018 14:29:06 +0300 Subject: server: reply to message should subscribe user --- juick-common/src/main/java/com/juick/server/CommandsManager.java | 1 + 1 file changed, 1 insertion(+) (limited to 'juick-common/src/main/java') diff --git a/juick-common/src/main/java/com/juick/server/CommandsManager.java b/juick-common/src/main/java/com/juick/server/CommandsManager.java index 9b7cda32..51051b7b 100644 --- a/juick-common/src/main/java/com/juick/server/CommandsManager.java +++ b/juick-common/src/main/java/com/juick/server/CommandsManager.java @@ -488,6 +488,7 @@ public class CommandsManager { imagesService.saveImageWithPreviews(attachmentFName, fname); } Message original = messagesService.getMessage(mid); + subscriptionService.subscribeMessage(original, user); Message reply = messagesService.getReply(mid, newrid); applicationEventPublisher.publishEvent(new MessageEvent(this, reply, subscriptionService.getUsersSubscribedToComments(original, reply))); return CommandResult.build(reply,"Reply posted.\n#" + mid + "/" + newrid + " " -- cgit v1.2.3