Project

General

Profile

Determine Nonexistent Room

Igor Khomenko
Added over 4 years ago

What is the right way to determine nonexistent room?

I need a logic where if a user is joining a room and it doesn't exist - user should receive an error instead of automatically room creation by server

I found some details about this case in XEP-0045:

http://xmpp.org/extensions/xep-0045.html#enter-nonexistent

sounds like XMPP server developers can do it on their own way. How Tigase handles this case and is it possible to do it?


Replies (3)

Avatar?id=6098&size=32x32

Added by Bartosz Małkowski TigaseTeam over 4 years ago

You can use Discovery http://xmpp.org/extensions/xep-0045.html#disco-roominfo

But it will work only for public rooms.

We can also implement new feature to disable autocreate rooms.

Added by Igor Khomenko over 4 years ago

Thanks

We can also implement new feature to disable autocreate rooms.

that would be great, but how it will work?

As I understand to create or join room user should send the same presence, so server actually can't know user's intention: create or join

Avatar?id=6098&size=32x32

Added by Bartosz Małkowski TigaseTeam over 4 years ago

FOr example in init.properties you will define list of JIDs that are able to create new room.

    (1-3/3)