"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.normalizeRoomJid = void 0;
const normalizeRoomJid = (roomJID, conference) => {
  if (!roomJID) {
    return roomJID;
  }
  if (roomJID.includes('@')) {
    return roomJID;
  }
  if (!conference) {
    return roomJID;
  }
  return `${roomJID}@${conference}`;
};
exports.normalizeRoomJid = normalizeRoomJid;
//# sourceMappingURL=normalizeRoomJid.js.map