src/modules/chat/qbChat.js
function(jid) {
        var arrayElements = jid.toString().split('/');
        if(arrayElements.length === 0){
            return null;
        }
        return arrayElements[arrayElements.length-1];
    }
function(jid) {
        var arrayElements = jid.toString().split('/');
        if(arrayElements.length === 0){
            return null;
        }
        return arrayElements[arrayElements.length-1];
    }
function ( jid ) { var arrayElements = jid . toString ( ) . split ( '/' ) ; if ( arrayElements . length === 0 ) { return null ; } return arrayElements [ arrayElements . length - 1 ] ; }
Get the user id from the room jid.
@memberof QB.chat.helpers
@param {String} jid - resourse jid.
@returns {String} userId - The user id.
Get the user id from the room jid .