From eb86e24cb2d5eab1a105c3567659440a1dc83cdd Mon Sep 17 00:00:00 2001 From: Kristina Date: Fri, 18 Apr 2025 16:35:33 +0400 Subject: [PATCH] Fix find for direct persons (#8632) Signed-off-by: Kristina Fefelova --- plugins/chunter-resources/src/utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/chunter-resources/src/utils.ts b/plugins/chunter-resources/src/utils.ts index acbee54bcf..3e0b84908a 100644 --- a/plugins/chunter-resources/src/utils.ts +++ b/plugins/chunter-resources/src/utils.ts @@ -91,7 +91,7 @@ export async function buildDmName (client: Client, accounts: AccountUuid[]): Pro let myName = '' for (const acc of accounts) { - const employee = employeeByAccount.get(acc) + const employee = employeeByAccount.get(acc) ?? (await client.findOne(contact.class.Person, { personUuid: acc })) if (employee === undefined) { continue