Ejabberd: Feature Request: Default bookmarks (aka default MUCs)

Created on 17 Jun 2018  路  7Comments  路  Source: processone/ejabberd

I think this is a known feature request, but I couldn't find an issue for it.

Basically would be nice to be able to set one or more default MUCs that all (new) users have bookmarked by default. F.e. like a "home" or "landing" MUC for support.

Most helpful comment

The solution I provided in a previous comment (to use mod_shared_roster), is problematic because not all clients will handle that.

A similar request was posted in #2649, and the solution there was to use send_stanza and send a full PEP stanza, but that works only with newer clients that support that.

Another solution would be to write a command that builds a room bookmark (XEP-0048) and stores it in private storage (XEP-0049) and in PEP (XEP-0163) to accommodate all kind of clients.

All 7 comments

  1. Enable mod_shared_roster
  2. In the webadmin, create a group called rooms, with members: [email protected]
  3. Then create another groyp called users, with members: @all@ and Display groups: rooms
  4. Then users that login with have in the roster the room:
<iq xml:lang='es'
    to='user1@localhost/tka1'
    from='user1@localhost'
    type='result'
    id='65:805683'>
  <query xmlns='jabber:iq:roster'>
    <item subscription='both'
    jid='[email protected]'>
      <group>rooms</group>
    </item>
    <item subscription='both'
    name='user2'
    jid='user2@localhost'/>
  </query>
</iq>

That's awesome! Didn't know members could be chatrooms!

For the record, though, it's @all@ in lowercase.

The solution I provided in a previous comment (to use mod_shared_roster), is problematic because not all clients will handle that.

A similar request was posted in #2649, and the solution there was to use send_stanza and send a full PEP stanza, but that works only with newer clients that support that.

Another solution would be to write a command that builds a room bookmark (XEP-0048) and stores it in private storage (XEP-0049) and in PEP (XEP-0163) to accommodate all kind of clients.

I was thinking about having my custom invitation tool (a tiny web server that handles a form with invitation codes) to just use the API to send a MUC invitation. Is it possible to add bookmarks with the API? I know these are only half-solutions for the actual problem of this issue, because they require custom code.

@badlop Wouldn't the most straightforward solution be a plugin like Prosody's equivalent? I think a lot of servers just have some kind of "landing muc" think they want to have for newbies to not get lost. So I don't think it's dynamic data.

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.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Vshnv picture Vshnv  路  4Comments

sujankumar4593 picture sujankumar4593  路  4Comments

cromain picture cromain  路  3Comments

ThomasLeister picture ThomasLeister  路  4Comments

irvingwa picture irvingwa  路  3Comments