docs: function(jid, callback) {
          /**
           * Callback for QB.chat.muc.leave().
           * run without parameters;
           * @callback leaveMacCallback
           * */
  
          var self = this,
              presParams = {
                  type: 'unavailable',
                  from: self.helpers.getUserCurrentJid(),
                  to: self.helpers.getRoomJid(jid)
              },
              builder = Utils.getEnv().browser ? $pres : XMPP.Stanza;
  
          var pres = chatUtils.createStanza(builder, presParams, 'presence');
  
          delete this.joinedRooms[jid];
  
          if (Utils.getEnv().browser) {
              var roomJid = self.helpers.getRoomJid(jid);
  
              if (typeof callback === 'function') {
                  self.connection.XAddTrackedHandler(callback, null, 'presence', presParams.type, null, roomJid);
              }
  
              self.connection.send(pres);
          } else {
              /** The answer don't contain id */
              if(typeof callback === 'function') {
                  self.nodeStanzasCallbacks['muc:leave'] = callback;
              }
  
              self.Client.send(pres);
          }
      }