# HG changeset patch # User Trần H. Trung # Date 1688991576 -25200 # Node ID 14480ca9576e48007e289f918f73cadbe4aa100a # Parent 04f36a470dca77e486f4162980739df2f37b597f mod_webpresence: Add TODO about fixing the first adhoc form. diff -r 04f36a470dca -r 14480ca9576e mod_webpresence/mod_webpresence.lua --- a/mod_webpresence/mod_webpresence.lua Sun Jul 09 01:31:29 2023 +0700 +++ b/mod_webpresence/mod_webpresence.lua Mon Jul 10 19:19:36 2023 +0700 @@ -39,7 +39,7 @@ type = "boolean"; name = moduleName; label = "Show"; - value = webpresence_get(); + --value = webpresence_get(); }; }; local formResult = utilDataforms.new { @@ -48,7 +48,7 @@ type = "boolean"; name = moduleName; label = "Show"; - value; + --value; }; { type = "text-multi"; @@ -77,6 +77,9 @@ return urlResult; end +-- TODO: +-- Fix the handler (somehow) to make `form` shows the correct value. +-- local adhoc_handler = utilAdhoc.new_simple_form(form, function(fields, state, data) local jid_bare = jid.bare(data.from); local user, host = jid_split(jid_bare);