Skip to content

Commit eb86e24

Browse files
Fix find for direct persons (#8632)
Signed-off-by: Kristina Fefelova <[email protected]>
1 parent 590ac43 commit eb86e24

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: plugins/chunter-resources/src/utils.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ export async function buildDmName (client: Client, accounts: AccountUuid[]): Pro
9191
let myName = ''
9292

9393
for (const acc of accounts) {
94-
const employee = employeeByAccount.get(acc)
94+
const employee = employeeByAccount.get(acc) ?? (await client.findOne(contact.class.Person, { personUuid: acc }))
9595

9696
if (employee === undefined) {
9797
continue

0 commit comments

Comments
 (0)