@ethora/chat-component 26.2.17 → 26.2.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/main.js CHANGED
@@ -5074,7 +5074,7 @@ const LC = {
5074
5074
  e.usersSet = OC(n).object;
5075
5075
  },
5076
5076
  setOpenReportModal: (e, t) => {
5077
- e.reportRoom.isOpen = t.payload.isOpen;
5077
+ e.reportRoom || (e.reportRoom = { isOpen: !1 }), e.reportRoom.isOpen = t.payload.isOpen;
5078
5078
  },
5079
5079
  setPushSubscriptionStatus: (e, t) => {
5080
5080
  const { jid: n, status: i } = t.payload, r = FC(e.subscribedRooms);
@@ -52135,7 +52135,9 @@ const Nz = ({
52135
52135
  }, []);
52136
52136
  const b = (Y) => {
52137
52137
  u(Y);
52138
- }, C = we((Y) => Y.rooms.rooms), E = we((Y) => Y.rooms.activeRoomJID), T = we((Y) => Y.rooms.reportRoom), { loadingText: w } = en(), v = Ve(() => {
52138
+ }, C = we((Y) => Y.rooms.rooms), E = we((Y) => Y.rooms.activeRoomJID), T = we(
52139
+ (Y) => !!Y.rooms?.reportRoom?.isOpen
52140
+ ), { loadingText: w } = en(), v = Ve(() => {
52139
52141
  if (E)
52140
52142
  return C[E]?.messages?.find(
52141
52143
  (Y) => Y?.activeMessage
@@ -52301,7 +52303,7 @@ const Nz = ({
52301
52303
  handleCloseModal: _
52302
52304
  }
52303
52305
  ),
52304
- T.isOpen && /* @__PURE__ */ g(bz, {})
52306
+ T && /* @__PURE__ */ g(bz, {})
52305
52307
  ] }) : null;
52306
52308
  }, _z = ({ ...e }) => {
52307
52309
  const [t, n] = ue(!1), { config: i, MainComponentStyles: r } = e, { user: s } = we((A) => A.chatSettingStore), a = le(async () => {