Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to enable mucsub in ejabberd 17.01 #1689

Closed
PH-F opened this issue Apr 21, 2017 · 2 comments
Closed

How to enable mucsub in ejabberd 17.01 #1689

PH-F opened this issue Apr 21, 2017 · 2 comments

Comments

@PH-F
Copy link

PH-F commented Apr 21, 2017

1
I read that muc_sub should be available in ejabberd 17.01.
But how do we enable muc-sub in Ejabberd 17.01.
The iOS client can not discover the mucsub feature.

2
And where in the ejabberd.yml must i add the allow_subscription: true, i added this, don't know if it's ok though

mod_muc:
    default_room_options:
        allow_subscription: true
        persistent: true
        mam: true

3
Can each user get the list of subscribers or only moderator. And if so can each user be a moderator?

@badlop
Copy link
Member

badlop commented Apr 26, 2017

1.1 It was first included in ejabberd 16.08.
1.2 The MUC Service has that feature enabled by default.
1.3 It is announced in the MUC service:

<iq id='66:762669' type='get' to='conference.localhost'>
  <query xmlns='http://jabber.org/protocol/disco#info'/>
</iq>
<iq to='user1@localhost/tka1'
	from='conference.localhost'
	type='result'
	id='66:762669'>
  <query xmlns='http://jabber.org/protocol/disco#info'>
    <feature var='http://jabber.org/protocol/muc'/>
    <feature var='vcard-temp'/>
    <feature var='urn:xmpp:mucsub:0'/>
    ...
  </query>
</iq>
  1. I tried your example config, and it correctly sets to true those options when creating a new room. I joined a new room, and when I configured that room, it was already persistent, allowed subscriptions, and had MAM archiving enabled.
  1. Can each user get the list of subscribers or only moderator.

As specified in https://docs.ejabberd.im/developer/xmpp-clients-bots/proposed-extensions/muc-sub/#list-of-subscriptions
only a room moderator can query the list of subscribers in that room.

And if so can each user be a moderator?

It is possible, you just have to grant moderator right user per user when they join the room. Alternatively, you can modify the source code to allow any room occupant to query the list of subscribers.

@lock
Copy link

lock bot commented Jun 10, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Jun 10, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants