Namespace: roster

QB.chat. roster

Methods

staticQB.chat.roster.add(jidOrUserId, callback)

modules/chat/qbChat.js, line 1692
Add users to contact list(read more).
Name Type Description
jidOrUserId String | Number Use opponent id for 1 to 1 chat, and jid for group chat.
callback addRosterCallback The callback function.

staticQB.chat.roster.confirm(jidOrUserId, callback)

modules/chat/qbChat.js, line 1723
Confirm subscription with some user(read more).
Name Type Description
jidOrUserId String | Number Use opponent id for 1 to 1 chat, and jid for group chat.
callback confirmRosterCallback The callback function.

staticQB.chat.roster.get(callback)

modules/chat/qbChat.js, line 1632
Receive contact list(read more).
Name Type Description
callback getRosterCallback The callback function.

staticQB.chat.roster.reject(jidOrUserId, callback)

modules/chat/qbChat.js, line 1760
Reject subscription with some user(read more).
Name Type Description
jidOrUserId String | Number Use opponent id for 1 to 1 chat, and jid for group chat.
callback rejectRosterCallback The callback function.

staticQB.chat.roster.remove(jidOrUserId, callback)

modules/chat/qbChat.js, line 1792
Remove subscription with some user from your contact list(read more).
Name Type Description
jidOrUserId String | Number Use opponent id for 1 to 1 chat, and jid for group chat.
callback removeRosterCallback The callback function.