"use strict";

import { xml } from '@xmpp/client';
export function setRoomImage(roomJid, roomThumbnail, type, client, roomBackground) {
  {
    const message = xml('iq', {
      id: type === 'icon' ? 'setRoomImage' : 'setRoomBackgroundImage',
      type: 'set'
    }, xml('query', {
      xmlns: 'ns:getrooms:setprofile',
      room_thumbnail: roomThumbnail,
      room_background: roomBackground ? roomBackground : '',
      room: roomJid
    }));
    client.send(message);
  }
}
//# sourceMappingURL=setRoomImage.xmpp.js.map