Poll WIP (#231):

* refactoring update messages, for a more efficient and proper way to
  handle it
This commit is contained in:
John Livingston
2024-07-05 10:39:38 +02:00
parent 0983c8ed57
commit 6dda0cc44f
7 changed files with 64 additions and 39 deletions

View File

@ -128,7 +128,7 @@ local function create_poll(room, fields, occupant)
return tonumber(a.number) < tonumber(b.number);
end);
room._data.current_poll.start_message_id = poll_start_message(room);
poll_start_message(room);
schedule_poll_end(room.jid, room._data.current_poll.end_timestamp);
end