Backed out changeset b8c3dbf76a2e (fixes #1162)
authorKim Alvefur <zash@zash.se>
Fri, 08 Jun 2018 16:02:57 +0200
changeset 8890 c47f220580fd
parent 8889 9aa35cb939ac
child 8891 cbcac5b9b7ce
child 8900 102242a7ee60
Backed out changeset b8c3dbf76a2e (fixes #1162) This is not required by the XEP and has privacy issues.
plugins/muc/muc.lib.lua
--- a/plugins/muc/muc.lib.lua	Fri Jun 08 11:53:10 2018 +0200
+++ b/plugins/muc/muc.lib.lua	Fri Jun 08 16:02:57 2018 +0200
@@ -235,11 +235,7 @@
 	return reply;
 end
 function room_mt:get_disco_items(stanza)
-	local reply = st.reply(stanza):query("http://jabber.org/protocol/disco#items");
-	for room_jid in pairs(self._occupants) do
-		reply:tag("item", {jid = room_jid, name = room_jid:match("/(.*)")}):up();
-	end
-	return reply;
+	return st.reply(stanza):query("http://jabber.org/protocol/disco#items");
 end
 function room_mt:set_subject(current_nick, subject)
 	if subject == "" then subject = nil; end