Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/spreed.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2022-04-06 15:43:00 +0300
committerJoas Schilling <coding@schilljs.com>2022-04-06 15:56:24 +0300
commita276585b52fc3456446632e9ca5621c9ceef9a37 (patch)
tree4528fac01562e33333992b0afb44f7ced1f29a07 /lib
parent47207131144cc80d98cf4f5570625e8b69a9b0ff (diff)
Remove reactions from deleted messages
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/Chat/Parser/SystemMessage.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Chat/Parser/SystemMessage.php b/lib/Chat/Parser/SystemMessage.php
index dd4aa7b1c..a92b1954c 100644
--- a/lib/Chat/Parser/SystemMessage.php
+++ b/lib/Chat/Parser/SystemMessage.php
@@ -497,6 +497,9 @@ class SystemMessage {
throw new \OutOfBoundsException('Unknown subject');
}
+ // Overwrite reactions of deleted messages as you can not react to them anymore either
+ $chatMessage->getComment()->setReactions([]);
+
$chatMessage->setMessage($parsedMessage, $parsedParameters, $message);
}