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

@ -96,4 +96,4 @@ module:hook("muc-room-restored", room_restored);
-- when a new session is opened, we must send the current poll to the client
-- Note: it should be in the MAM. But it is easier for clients to ignore delayed messages
-- when displaying polls (to ignore old polls).
module:hook("muc-occupant-session-new", handle_new_occupant_session);
module:hook("muc-occupant-session-new", handle_new_occupant_session, 10); -- must be after subject (20, see Prosody code)