diff options
author | Joas Schilling <coding@schilljs.com> | 2022-04-06 15:43:00 +0300 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2022-04-06 15:56:24 +0300 |
commit | a276585b52fc3456446632e9ca5621c9ceef9a37 (patch) | |
tree | 4528fac01562e33333992b0afb44f7ced1f29a07 /lib | |
parent | 47207131144cc80d98cf4f5570625e8b69a9b0ff (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.php | 3 |
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); } |