Skip to content

Commit

Permalink
fix(federation): Correctly convert message on deleting
Browse files Browse the repository at this point in the history
Signed-off-by: Joas Schilling <coding@schilljs.com>
  • Loading branch information
nickvergessen committed Mar 7, 2024
1 parent 6d94f42 commit f1d6e9e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/Federation/Proxy/TalkV1/Controller/ChatController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit f1d6e9e

Please sign in to comment.