Members
-
staticQB.chat.helpers.getUniqueId
-
Get unique id.
Methods
-
staticQB.chat.helpers.getBsonObjectId(){String}
modules/chat/qbChat.js, line 2780 -
Generate BSON ObjectId.
Returns:
Type Description String BsonObjectId - The bson object id. -
staticQB.chat.helpers.getDialogIdFromNode(jid){String}
modules/chat/qbChat.js, line 2724 -
Get the dialog id from jid.
Name Type Description jid
String The dialog jid. Returns:
Type Description String dialogId - The dialog id. -
staticQB.chat.helpers.getIdFromNode(jid){Number}
modules/chat/qbChat.js, line 2714 -
Get the User id from jid.
Name Type Description jid
String The user jid. Returns:
Type Description Number id - The user id. -
staticQB.chat.helpers.getIdFromResource(jid){String}
modules/chat/qbChat.js, line 2756 -
Get user id from dialog's full jid.
Name Type Description jid
String dialog's full jid. Returns:
Type Description String user_id - User Id. -
staticQB.chat.helpers.getRecipientId(occupantsIds, UserId){Number}
modules/chat/qbChat.js, line 2674 -
Get the recipint id.
Name Type Description occupantsIds
Array Array of user ids. UserId
Number Jid or user id. Returns:
Type Description Number - Recipient id. -
staticQB.chat.helpers.getRoomJid(jid, userJid){String}
modules/chat/qbChat.js, line 2746 -
Get the full room jid from room bare jid & user jid.
Name Type Description jid
String dialog's bare jid. userJid
String user's jid. Returns:
Type Description String jid - dialog's full jid. -
staticQB.chat.helpers.getRoomJidFromDialogId(dialogId){String}
modules/chat/qbChat.js, line 2735 -
Get the room jid from dialog id.
Name Type Description dialogId
String The dialog id. Returns:
Type Description String jid - The dialog jid. -
staticQB.chat.helpers.getRoomJidFromRoomFullJid(jid){String}
modules/chat/qbChat.js, line 2769 -
Get bare dialog's jid from dialog's full jid.
Name Type Description jid
String dialog's full jid. Returns:
Type Description String room_jid - dialog's bare jid. -
staticQB.chat.helpers.getUserIdFromRoomJid(jid){String}
modules/chat/qbChat.js, line 2790 -
Get the user id from the room jid.
Name Type Description jid
String resourse jid. Returns:
Type Description String userId - The user id. -
staticQB.chat.helpers.getUserJid(UserId, appId){String}
modules/chat/qbChat.js, line 2691 -
Get the User jid id.
Name Type Description UserId
Number The user id. appId
Number The application id. Returns:
Type Description String jid - The user jid. -
staticQB.chat.helpers.getUserNickWithMucDomain(UserId){String}
modules/chat/qbChat.js, line 2704 -
Get the User nick with the muc domain.
Name Type Description UserId
Number The user id. Returns:
Type Description String mucDomainWithNick - The mac domain with he nick. -
staticQB.chat.helpers.jidOrUserId(jid_or_user_id){String}
modules/chat/qbChat.js, line 2637 -
Get unique id.
Name Type Description jid_or_user_id
String | Number Jid or user id. Returns:
Type Description String - jid. -
staticQB.chat.helpers.typeChat(jid_or_user_id){String}
modules/chat/qbChat.js, line 2655 -
Get the chat type.
Name Type Description jid_or_user_id
String | Number Jid or user id. Returns:
Type Description String - jid.