占有者和隶属关系有什么区别?

What is the difference between occupants and affiliations?

想知道如何在房间中添加入住者。

我们可以在不添加从属关系的情况下添加乘员吗?

它们在 MUC 规范中定义:

  • 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.