From 00da371dfbd3ca57b4d6c91bb41384aa42eb61ac Mon Sep 17 00:00:00 2001 From: florianfederspiel Date: Fri, 22 May 2026 18:47:17 +0200 Subject: [PATCH] =?UTF-8?q?KI-AGENT:=20Direktchat=20Push=20Empf=C3=A4nger?= =?UTF-8?q?=20korrigieren?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/src/routes/communication.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/backend/src/routes/communication.ts b/backend/src/routes/communication.ts index e61fd86..2b12897 100644 --- a/backend/src/routes/communication.ts +++ b/backend/src/routes/communication.ts @@ -174,6 +174,10 @@ export default async function communicationRoutes(server: FastifyInstance) { if (room?.type === "direct" && room.entityUuid && room.entityUuid !== senderUserId) { directRecipients.add(room.entityUuid) + } else if (room?.type === "direct" && room.key) { + recipients + .filter((recipient) => directRoomKey(senderUserId, recipient.userId) === room.key) + .forEach((recipient) => directRecipients.add(recipient.userId)) } return recipients