From ce6b67d9214f21c55119f434887ff06c3685b827 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Thu, 29 Feb 2024 18:43:24 +0100 Subject: [PATCH] fix(federation): Translate the token for the iOS app Signed-off-by: Joas Schilling --- lib/Federation/Proxy/TalkV1/UserConverter.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/Federation/Proxy/TalkV1/UserConverter.php b/lib/Federation/Proxy/TalkV1/UserConverter.php index 7ae2ff7e299..392380d39ba 100644 --- a/lib/Federation/Proxy/TalkV1/UserConverter.php +++ b/lib/Federation/Proxy/TalkV1/UserConverter.php @@ -106,6 +106,8 @@ public function convertMessage(Room $room, array $message): array { $message = $this->convertAttendee($room, $message, 'actorType', 'actorId', 'actorDisplayName'); $message = $this->convertAttendee($room, $message, 'lastEditActorType', 'lastEditActorId', 'lastEditActorDisplayName'); $message = $this->convertMessageParameters($room, $message); + $message['token'] = $room->getToken(); + if (isset($message['parent'])) { $message['parent'] = $this->convertMessage($room, $message['parent']); }