fix: ddon't turn poll end messages to reply type

This commit is contained in:
CyberL1 authored and Rory& committed 2026-06-26 16:42:33 +02:00
1 parent caf74417b5
commit fad6cfc043
1 file changed
+2 -1
+2 -1
View File
@@ -469,7 +469,8 @@ export async function handleMessage(opts: MessageOptions): Promise<Message> {
}
/** Q: should be checked if the referenced message exists? ANSWER: NO
otherwise backfilling won't work **/
if (MessageType.THREAD_STARTER_MESSAGE !== message.type && MessageType.THREAD_CREATED !== message.type) message.type = MessageType.REPLY;
if (MessageType.THREAD_STARTER_MESSAGE !== message.type && MessageType.THREAD_CREATED !== message.type && MessageType.POLL_RESULT !== message.type)
message.type = MessageType.REPLY;
}
}