"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.allRoomPresences = allRoomPresences;
var _roomStore = require("../../roomStore");
var _presenceInRoom = require("./presenceInRoom.xmpp");
async function allRoomPresences(client) {
  const rooms = _roomStore.store.getState().rooms.rooms;
  await Promise.all(Object.keys(rooms).map(roomJid => (0, _presenceInRoom.presenceInRoom)(client, roomJid)));
}
//# sourceMappingURL=allRoomPresences.xmpp.js.map