summary refs log tree commit diff
path: root/api/src/util/handlers/Message.ts
diff options
context:
space:
mode:
authorErkin Alp Güney <erkinalp9035@gmail.com>2022-04-23 10:56:47 +0300
committerErkin Alp Güney <erkinalp9035@gmail.com>2022-04-23 10:56:47 +0300
commit4a4c16cf48388375122977c2cecb7d5b2d2dcfd7 (patch)
treec41335668062f4f4317e986cb1564d04e18edbf9 /api/src/util/handlers/Message.ts
parentuser groups - first steps (diff)
downloadserver-4a4c16cf48388375122977c2cecb7d5b2d2dcfd7.tar.xz
backfilling — first steps
Diffstat (limited to 'api/src/util/handlers/Message.ts')
-rw-r--r--api/src/util/handlers/Message.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/api/src/util/handlers/Message.ts b/api/src/util/handlers/Message.ts
index 5a5ac666..e9f0ac55 100644
--- a/api/src/util/handlers/Message.ts
+++ b/api/src/util/handlers/Message.ts
@@ -91,7 +91,8 @@ export async function handleMessage(opts: MessageOptions): Promise<Message> {
 				if (opts.message_reference.channel_id !== opts.channel_id) throw new HTTPError("You can only reference messages from this channel");
 			}
 		}
-		// Q: should be checked if the referenced message exists? ANSWER: NO
+		/** Q: should be checked if the referenced message exists? ANSWER: NO
+		 otherwise backfilling won't work **/
 		// @ts-ignore
 		message.type = MessageType.REPLY;
 	}