Poll WIP (#231):

* poll backend WIP
This commit is contained in:
John Livingston
2024-06-30 17:19:14 +02:00
parent 22076e9929
commit 212076c3a3
4 changed files with 82 additions and 10 deletions

View File

@ -102,7 +102,7 @@ local function dataform_error_message(err)
end
local function process_form(room, origin, stanza)
local function process_form(room, origin, stanza, occupant)
if not stanza.tags[1] then
origin.send(st.error_reply(stanza, "modify", "bad-request"));
return true;
@ -141,7 +141,7 @@ local function process_form(room, origin, stanza)
end_current_poll(room);
-- create the new poll
create_poll(room, fields);
create_poll(room, fields, occupant);
origin.send(st.reply(stanza));
return true;