diff options
Diffstat (limited to 'lib/Chat/ReactionManager.php')
-rw-r--r-- | lib/Chat/ReactionManager.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Chat/ReactionManager.php b/lib/Chat/ReactionManager.php index e825d7ec6..b1f174b6e 100644 --- a/lib/Chat/ReactionManager.php +++ b/lib/Chat/ReactionManager.php @@ -110,7 +110,7 @@ class ReactionManager { */ public function deleteReactionMessage(Room $chat, string $actorType, string $actorId, int $messageId, string $reaction): IComment { // Just to verify that messageId is part of the room and throw error if not. - $this->getCommentToReact($chat, (string) $messageId); + $parentComment = $this->getCommentToReact($chat, (string) $messageId); $comment = $this->commentsManager->getReactionComment( $messageId, @@ -136,7 +136,7 @@ class ReactionManager { $this->timeFactory->getDateTime(), false, null, - $messageId, + $parentComment, true ); |