This commit is contained in:
Christopher Cookman 2024-09-04 08:43:54 -06:00
parent 2f947401da
commit dfaecbfec7
Signed by: ChrisChrome
GPG key ID: A023A26E42C33A42

View file

@ -61,16 +61,15 @@ local ws = function (dict)
if response.Success then if response.Success then
local msg = response.Body local msg = response.Body
-- Rest of the code if notExists(messages, msg) then
table.insert(messages, msg)
if notEmpty(msg) then
onMessage(msg)
end
end
else else
error("Error Polling Messages: " .. response.StatusCode .. " " .. response.StatusMessage) error("Error Polling Messages: " .. response.StatusCode .. " " .. response.StatusMessage)
end end
if notExists(messages, msg) then
table.insert(messages, msg)
if notEmpty(msg) then
onMessage(msg)
end
end
end end
end) end)
coroutine.resume(loop) coroutine.resume(loop)