diff options
Diffstat (limited to 'src/api/routes/channels/#channel_id/messages/index.ts')
-rw-r--r-- | src/api/routes/channels/#channel_id/messages/index.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/api/routes/channels/#channel_id/messages/index.ts b/src/api/routes/channels/#channel_id/messages/index.ts index 76f6a0dc..ab8bd1ba 100644 --- a/src/api/routes/channels/#channel_id/messages/index.ts +++ b/src/api/routes/channels/#channel_id/messages/index.ts @@ -289,7 +289,7 @@ router.post( edited_timestamp: undefined, timestamp: new Date(), }); - + if (message.id == "0") return res.json(message); // Don't handle cancelled messages. channel.last_message_id = message.id; if (channel.isDm()) { |