summary refs log tree commit diff
path: root/src/api/routes/channels/#channel_id/messages/index.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/api/routes/channels/#channel_id/messages/index.ts')
-rw-r--r--src/api/routes/channels/#channel_id/messages/index.ts2
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()) {