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