mirror of
https://github.com/spacebarchat/server.git
synced 2026-08-14 15:30:26 +00:00
fix: poll answer id should never be 0
This commit is contained in:
@@ -495,7 +495,7 @@ export async function handleMessage(opts: MessageOptions): Promise<Message> {
|
||||
|
||||
if (opts.poll?.answers) {
|
||||
for (let i = 0; i < opts.poll.answers.length; i++) {
|
||||
message.poll.answers[i].answer_id = i;
|
||||
message.poll.answers[i].answer_id = i + 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user