What is the difference between occupants and affiliations?

263 Views Asked by At

Want to know how to add occupants in room.

Can we add occupants without adding affilitions?

1

There are 1 best solutions below

0
Wojtek On BEST ANSWER

They are defined in MUC specification:

  • 5.1 Roles:

    Roles are temporary in that they do not necessarily persist across a user's visits to the room and MAY change during the course of an occupant's visit to the room.

  • 5.2 Affiliations:

    These affiliations are long-lived in that they persist across a user's visits to the room and are not affected by happenings in the room. In addition, there is no one-to-one mapping between these affiliations and an occupant's role within the room. Affiliations are granted, revoked, and maintained based on the user's bare JID, not the nick as with roles.