"use strict";

import { xml } from '@xmpp/client';
import { CHAT_DOMAIN } from '../../helpers/constants/PLATFORM_CONSTANTS';
export async function inviteRoomRequest(client, to, roomJid) {
  const id = `invite-rooms:${Date.now().toString()}`;
  const xmlMessage = xml('message', {
    to: roomJid,
    id: id
  }, xml('x', 'http://jabber.org/protocol/muc#user', xml('invite', {
    to: to + CHAT_DOMAIN
  })));
  client.send(xmlMessage);
}
//# sourceMappingURL=inviteRoomRequest.xmpp.js.map