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) {
|
if (room?.type === "direct" && room.entityUuid && room.entityUuid !== senderUserId) {
|
||||||
directRecipients.add(room.entityUuid)
|
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
|
return recipients
|
||||||
|
|||||||
Reference in New Issue
Block a user