i read the XMPP doc : XEP-0045: Multi-User Chat
in the doc, there is a such paragraph:
An admin can grant membership to a user; this is done by changing the affiliation for the user's bare JID to "member" (if a nick is provided, that nick becomes the user's default nick in the room if that functionality is supported by the implementation):
Example 120. Admin Grants Membership
<iq from='crone1@shakespeare.lit/desktop'
id='member1'
to='coven@chat.shakespeare.lit'
type='set'>
<query xmlns='http://jabber.org/protocol/muc#admin'>
<item affiliation='member'
jid='hag66@shakespeare.lit'
nick='thirdwitch'/>
</query>
</iq>
The <reason/> element is OPTIONAL.
So the user who the admin want to grant membership should must be online or not? In other words,can admin make unilateral decision of granting the role(membership) of the new user regardless of its current login status(online or offline)?