Task lists WIP:

* disco support
This commit is contained in:
John Livingston
2024-05-10 11:33:41 +02:00
parent b4f4eca5ea
commit 8aa12eb575
3 changed files with 22 additions and 6 deletions

View File

@ -17,8 +17,6 @@
-- * unsubscribing users that have left the room (the front-end will subscribe again when needed)
-- * unsubscribing users when losing their affiliation
-- TODO: add disco support.
local pubsub = require "util.pubsub";
local jid_bare = require "util.jid".bare;
local jid_split = require "util.jid".split;
@ -379,3 +377,9 @@ module:hook("muc-occupant-left", function (event)
end;
end
end);
-- Discovering support
module:hook("muc-disco#info", function (event)
event.reply:tag("feature", { var = xmlns_task }):up();
event.reply:tag("feature", { var = xmlns_tasklist }):up();
end);