From f1d6e9e6a0cb4dd9b48d093eecb3bc370433a555 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Thu, 7 Mar 2024 14:29:49 +0100 Subject: [PATCH] fix(federation): Correctly convert message on deleting Signed-off-by: Joas Schilling --- lib/Federation/Proxy/TalkV1/Controller/ChatController.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/Federation/Proxy/TalkV1/Controller/ChatController.php b/lib/Federation/Proxy/TalkV1/Controller/ChatController.php index 3076484c4a49..735768c4ebd1 100644 --- a/lib/Federation/Proxy/TalkV1/Controller/ChatController.php +++ b/lib/Federation/Proxy/TalkV1/Controller/ChatController.php @@ -334,8 +334,7 @@ public function deleteMessage(Room $room, Participant $participant, int $message /** @var ?TalkChatMessageWithParent $data */ $data = $this->proxy->getOCSData($proxy, [Http::STATUS_OK, Http::STATUS_ACCEPTED]); if (!empty($data)) { - $data = $this->userConverter->convertAttendee($room, $data, 'actorType', 'actorId', 'actorDisplayName'); - $data = $this->userConverter->convertAttendee($room, $data, 'lastEditActorType', 'lastEditActorId', 'lastEditActorDisplayName'); + $data = $this->userConverter->convertMessage($room, $data); } else { $data = null; }