Prosody : Private Chatroom Issues

304 views
Skip to first unread message

Gauri Padbidri

unread,
Aug 26, 2015, 9:04:56 AM8/26/15
to prosody-dev
Hi All,


Chat Cleint : Converse
XMPP Server : Prosody 0.10.

I am trying to create PRIVATE Chat rooms, where the Chat rooms should be VISIBLE to only the Participants of the Chat room and NOT publicly. For that I have done the following configurations : 
                    var configArray = [];
                    configArray.push(cUtils.setConfigFields('FORM_TYPE', 'http://jabber.org/protocol/muc#roomconfig'));
                    configArray.push(cUtils.setConfigFields('muc#roomconfig_roomname', chatroomName ));
                    var displayName = chatroomName.replace(/[_]+/g, " ");;
                    configArray.push(cUtils.setConfigFields('muc#roomconfig_roomdesc', displayName )); // Changing Chat Room Name
                    configArray.push(cUtils.setConfigFields('muc#roomconfig_persistentroom', 1)); // Making a Persistant Private Chat Room ----------------------(1)
                    configArray.push(cUtils.setConfigFields('muc#roomconfig_publicroom', 0)); // Converting Public Room to Private Chat Room ------------------(2)
                    configArray.push(cUtils.setConfigFields('muc#roomconfig_changesubject', 0)); 
                    configArray.push(cUtils.setConfigFields('muc#roomconfig_whois', "moderators"));
                    configArray.push(cUtils.setConfigFields('muc#roomconfig_roomsecret', "")); 
                    configArray.push(cUtils.setConfigFields('muc#roomconfig_moderatedroom', 0)); 
                    configArray.push(cUtils.setConfigFields('muc#roomconfig_membersonly', 0)); 
                    configArray.push(cUtils.setConfigFields('muc#roomconfig_historylength', 20));

The problem is when I query Prosody to give me a list of Chat rooms for the given user, it will return me the PUBLIC Chat rooms but NOT the PRIVATE Chat rooms I created...Is it because I have set "muc#roomconfig_publicroom" to FALSE, which makes them hidden publicly ? Also, what configuration can I do on Prosody Config to fetch Private Rooms as well.

Any coding / configuration guidelines will be great help. Thanks !
                    

Kim Alvefur

unread,
Aug 26, 2015, 9:18:27 AM8/26/15
to proso...@googlegroups.com
On 2015-08-25 08:40, Gauri Padbidri wrote:
> The problem is when I query Prosody to give me a list of Chat rooms for
> the given user, it will return me the PUBLIC Chat rooms but NOT the
> PRIVATE Chat rooms I created...Is it because I have set
> "muc#roomconfig_publicroom" to FALSE, which makes them hidden publicly ?
> Also, what configuration can I do on Prosody Config to fetch Private
> Rooms as well.

This is the bit that generates the list of rooms:
http://hg.prosody.im/0.10/file/8b4c8e957211/plugins/muc/mod_muc.lua#l129

It only checks if the room is hidden, so it would need to become more
complicated in order to also show private/hidden rooms to those who
would be allowed to see it. And who would be allowed to see it?
Owners? Any members?

--
Regards,
Kim "Zash" Alvefur

signature.asc

Kim Alvefur

unread,
Aug 26, 2015, 9:32:41 AM8/26/15
to proso...@googlegroups.com
Try the attached patch. :)

--
Kim "Zash" Alvefur
muc+list-hidden-rooms-maybe.patch
signature.asc
Reply all
Reply to author
Forward
0 new messages