prosody-modules/mod_mix/forms.lib.lua
Alexander PapaTutuWawa 94e9bb1baa mod_mix: Major refactor
- Remove all non-0369 code as it was trash anyway
- Migrate from using mod_pep to creating our own PubSub service
- Remove indices from functions like find_channel
2021-06-02 16:44:17 +02:00

19 lines
653 B
Lua

local dataforms = require("util.dataforms");
local namespaces = module:require("mix/namespaces");
return {
-- MIX
mix_info = dataforms.new({
{ name = "FORM_TYPE", type = "hidden", value = namespaces.mix_core },
{ name = "Name", type = "text-single" },
{ name = "Description", type = "text-single" },
{ name = "Contact", type = "jid-multi" }});
-- MAM
mam_query = dataforms.new({
{ name = "FORM_TYPE", type = "hidden", value = namespaces.mam },
{ name = "with", type = "jid-single" },
{ name = "start", type = "text-single" },
{ name = "end", type = "text-single" }});
};