Namespace: roster

QB.chat. roster

Methods

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

modules/chat/qbChat.js, line 1367
Add users to contact list. More info.
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 1398
Confirm subscription with some user. More info.
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 1306
Receive contact list. More info.
Name Type Description
callback getRosterCallback The callback function.

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

modules/chat/qbChat.js, line 1435
Reject subscription with some user. More info.
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 1467
Remove subscription with some user from your contact list. More info.
Name Type Description
jidOrUserId String | Number Use opponent id for 1 to 1 chat, and jid for group chat.
callback removeRosterCallback The callback function.