A problem that Admin role grant membership to a offline user

I am doing Instant message multichat module with jsjac within the protocol of XMPP. .

Assume that userA is owner who has ceate and configuration a room, and UserB is offline, if userA as an admin want to send a JSJACIQ packet to openfire to grant userB membership, will it be successful?or server will return error message?