fix messaging messages with multiple recipients
instead of returning early, this should only return after all messaging messages have been created
This commit is contained in:
parent
c9df2fd060
commit
bda8488194
1 changed files with 1 additions and 1 deletions
|
@ -243,8 +243,8 @@ export async function createNote(value: string | IObject, resolver: Resolver, si
|
|||
if (isTalk) {
|
||||
for (const recipient of visibleUsers) {
|
||||
await createMessage(actor, recipient, undefined, text || undefined, (files && files.length > 0) ? files[0] : null, object.id);
|
||||
return null;
|
||||
}
|
||||
return null;
|
||||
} else {
|
||||
return await post(actor, {
|
||||
createdAt: note.published ? new Date(note.published) : null,
|
||||
|
|
Loading…
Reference in a new issue