mirror of
https://github.com/spacebarchat/server.git
synced 2026-10-22 15:22:43 +00:00
fix: ddon't turn poll end messages to reply type
This commit is contained in:
1 parent
caf74417b5
commit
fad6cfc043
1 file changed
+2
-1
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user