Mercurial > prosody-hg
comparison plugins/muc/muc.lib.lua @ 5853:3ee3d79db18c
muc.lib.lua: Fix Spark jabber client not displaying conference room lists, seemingly due to a missing value tag for the room description if the description has not been set
| author | Paul <paul@quakenet.org> |
|---|---|
| date | Sat, 05 Oct 2013 17:11:16 +0100 |
| parents | 24b044f6e06d |
| children | 16a2bb97c5f5 6d410ffd6e13 |
comparison
equal
deleted
inserted
replaced
| 5849:8f451d370dd4 | 5853:3ee3d79db18c |
|---|---|
| 223 :tag("feature", {var=self:is_persistent() and "muc_persistent" or "muc_temporary"}):up() | 223 :tag("feature", {var=self:is_persistent() and "muc_persistent" or "muc_temporary"}):up() |
| 224 :tag("feature", {var=self:is_hidden() and "muc_hidden" or "muc_public"}):up() | 224 :tag("feature", {var=self:is_hidden() and "muc_hidden" or "muc_public"}):up() |
| 225 :tag("feature", {var=self._data.whois ~= "anyone" and "muc_semianonymous" or "muc_nonanonymous"}):up() | 225 :tag("feature", {var=self._data.whois ~= "anyone" and "muc_semianonymous" or "muc_nonanonymous"}):up() |
| 226 :add_child(dataform.new({ | 226 :add_child(dataform.new({ |
| 227 { name = "FORM_TYPE", type = "hidden", value = "http://jabber.org/protocol/muc#roominfo" }, | 227 { name = "FORM_TYPE", type = "hidden", value = "http://jabber.org/protocol/muc#roominfo" }, |
| 228 { name = "muc#roominfo_description", label = "Description"}, | 228 { name = "muc#roominfo_description", label = "Description", value = "" }, |
| 229 { name = "muc#roominfo_occupants", label = "Number of occupants", value = tostring(count) } | 229 { name = "muc#roominfo_occupants", label = "Number of occupants", value = tostring(count) } |
| 230 }):form({["muc#roominfo_description"] = self:get_description()}, 'result')) | 230 }):form({["muc#roominfo_description"] = self:get_description()}, 'result')) |
| 231 ; | 231 ; |
| 232 end | 232 end |
| 233 function room_mt:get_disco_items(stanza) | 233 function room_mt:get_disco_items(stanza) |
