[Glitch] Use the server setting to get the max number of poll options in UI

Port b9722dfe2b to glitch-soc

Signed-off-by: Claire <claire.github-309c@sitedethib.com>
This commit is contained in:
Renaud Chaput
2024-03-11 10:13:35 +01:00
committed by Claire
parent efbc8cba17
commit 6440651976
3 changed files with 9 additions and 7 deletions

View File

@@ -822,11 +822,12 @@ export function addPollOption(title) {
};
}
export function changePollOption(index, title) {
export function changePollOption(index, title, maxOptions) {
return {
type: COMPOSE_POLL_OPTION_CHANGE,
index,
title,
maxOptions,
};
}