From fe5e6737b38d8280d333402638d541813028dd97 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Tue, 19 Apr 2022 20:13:07 +0200 Subject: Keep "self" in name Signed-off-by: Joas Schilling --- lib/Controller/ChatController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/Controller/ChatController.php b/lib/Controller/ChatController.php index 16cf11655..da4acde02 100644 --- a/lib/Controller/ChatController.php +++ b/lib/Controller/ChatController.php @@ -555,14 +555,14 @@ class ChatController extends AEnvironmentAwareController { // Inject the reactions self into the $messages array foreach ($reactionsById as $messageId => $reactions) { if (isset($messages[$commentIdToIndex[$messageId]])) { - $messages[$commentIdToIndex[$messageId]]['myReactions'] = $reactions; + $messages[$commentIdToIndex[$messageId]]['reactionsSelf'] = $reactions; } // Add the self part also to potential parent elements if (isset($parentMap[$messageId])) { foreach ($parentMap[$messageId] as $mid) { if (isset($messages[$commentIdToIndex[$mid]])) { - $messages[$commentIdToIndex[$mid]]['parent']['myReactions'] = $reactions; + $messages[$commentIdToIndex[$mid]]['parent']['reactionsSelf'] = $reactions; } } } -- cgit v1.2.3