diff options
author | 2018-10-31 15:03:57 +0300 | |
---|---|---|
committer | 2018-10-31 15:03:57 +0300 | |
commit | d6385d656a0af52d9509f76dccce1172b663f2d9 (patch) | |
tree | ae9e24de7b71a80f7771a544163b7ea4c2e686ef /juick-server/src/main/java/com | |
parent | f119f0b85b9b96f724997eaf53b38594340a91c4 (diff) |
Fix tests
Diffstat (limited to 'juick-server/src/main/java/com')
-rw-r--r-- | juick-server/src/main/java/com/juick/server/CommandsManager.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/juick-server/src/main/java/com/juick/server/CommandsManager.java b/juick-server/src/main/java/com/juick/server/CommandsManager.java index ade70dc9..a0904d33 100644 --- a/juick-server/src/main/java/com/juick/server/CommandsManager.java +++ b/juick-server/src/main/java/com/juick/server/CommandsManager.java @@ -516,12 +516,12 @@ public class CommandsManager { attachmentType = attachmentFName.substring(attachmentFName.length() - 3); } int newrid = messagesService.createReply(mid, rid, user, txt, attachmentType); - applicationEventPublisher.publishEvent( - new MessageReadEvent(this, user, msg)); if (haveAttachment) { String fname = String.format("%d-%d.%s", mid, newrid, attachmentType); imagesService.saveImageWithPreviews(attachmentFName, fname); } + applicationEventPublisher.publishEvent( + new MessageReadEvent(this, user, msg)); Message original = messagesService.getMessage(mid); subscriptionService.subscribeMessage(original, user); Message reply = messagesService.getReply(mid, newrid); |