KI-AGENT: Direktchat Push Empfänger korrigieren
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user