Changeset

5594:14480ca9576e

mod_webpresence: Add TODO about fixing the first adhoc form.
author Trần H. Trung <xmpp:trần.h.trung@trung.fun>
date Mon, 10 Jul 2023 19:19:36 +0700
parents 5593:04f36a470dca
children 5595:f7410850941f
files mod_webpresence/mod_webpresence.lua
diffstat 1 files changed, 5 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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);