diff --git "a/src/api/routes/channels/\043channel_id/messages/index.ts" "b/src/api/routes/channels/\043channel_id/messages/index.ts" index 747701d..e0c91b8 100644 --- "a/src/api/routes/channels/\043channel_id/messages/index.ts" +++ "b/src/api/routes/channels/\043channel_id/messages/index.ts" @@ -201,6 +201,19 @@ ); } + if (body.nonce) { + const existing = await Message.findOne({ + where: { + nonce: body.nonce, + channel_id: channel.id, + author_id: req.user_id + } + }); + if (existing) { + return res.json(existing); + } + } + const files = (req.files as Express.Multer.File[]) ?? []; for (var currFile of files) { try {