mirror of
https://gitcode.com/GitHub_Trending/ji/jitsi-meet.git
synced 2025-12-30 03:12:29 +00:00
fix(polls): Returns an error on duplicate poll.
This commit is contained in:
@@ -115,7 +115,8 @@ module:hook("message/bare", function(event)
|
||||
|
||||
if room.polls.by_id[data.pollId] ~= nil then
|
||||
module:log("error", "Poll already exists: %s", data.pollId);
|
||||
return;
|
||||
event.origin.send(st.error_reply(event.stanza, 'cancel', 'not-allowed', 'Poll already exists'));
|
||||
return true;
|
||||
end
|
||||
|
||||
local answers = {}
|
||||
|
||||
Reference in New Issue
Block a user