summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--api/src/routes/channels/#channel_id/messages/index.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/api/src/routes/channels/#channel_id/messages/index.ts b/api/src/routes/channels/#channel_id/messages/index.ts

index 57273776..1e9b58ae 100644 --- a/api/src/routes/channels/#channel_id/messages/index.ts +++ b/api/src/routes/channels/#channel_id/messages/index.ts
@@ -228,7 +228,7 @@ router.post( const channel_dto = await DmChannelDTO.from(channel); // Only one recipients should be closed here, since in group DMs the recipient is deleted not closed - Promise.all( + await Promise.all( channel.recipients!.map((recipient) => { if (recipient.closed) { recipient.closed = false;