"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.setRoomImage = setRoomImage;
var _client = require("@xmpp/client");
function setRoomImage(roomJid, roomThumbnail, type, client, roomBackground) {
  {
    const message = (0, _client.xml)('iq', {
      id: type === 'icon' ? 'setRoomImage' : 'setRoomBackgroundImage',
      type: 'set'
    }, (0, _client.xml)('query', {
      xmlns: 'ns:getrooms:setprofile',
      room_thumbnail: roomThumbnail,
      room_background: roomBackground ? roomBackground : '',
      room: roomJid
    }));
    client.send(message);
  }
}
//# sourceMappingURL=setRoomImage.xmpp.js.map