@vlprojects-chat/chat 0.33.1 → 0.33.2-LK-97-self-block.1

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.
Files changed (2) hide show
  1. package/dist/index.mjs +8 -8
  2. package/package.json +1 -1
package/dist/index.mjs CHANGED
@@ -56199,19 +56199,19 @@ function _le(e) {
56199
56199
  };
56200
56200
  }
56201
56201
  const Ule = (e) => {
56202
- const { onClose: t, user: n, message: r, getPinnedMessageId: o } = e, i = o(), s = ot(), a = () => {
56202
+ const { onClose: t, user: n, message: r, getPinnedMessageId: o } = e, i = o(), s = ot(), a = n.id === `${s.auth.me.id}`, l = () => {
56203
56203
  i ? mI(i) : aJ(s, Number(r.id)), t == null || t();
56204
- }, l = () => {
56205
- lJ(Number(r.id)), t && t();
56206
56204
  }, u = () => {
56207
- uJ(n.id), t && t();
56205
+ lJ(Number(r.id)), t && t();
56208
56206
  }, c = () => {
56207
+ uJ(n.id), t && t();
56208
+ }, p = () => {
56209
56209
  dJ(n.id), t && t();
56210
56210
  };
56211
56211
  return /* @__PURE__ */ h.jsxs(h.Fragment, { children: [
56212
- /* @__PURE__ */ h.jsx(hd, { "data-stats": i ? qt.ChatMessageMenuUnpin : qt.ChatMessageMenuPin, action: a, children: /* @__PURE__ */ h.jsx(Te, { id: i ? "unpinMessage" : "pinMessage" }) }),
56213
- /* @__PURE__ */ h.jsx(hd, { "data-stats": qt.ChatMessageMenuDelete, action: l, children: /* @__PURE__ */ h.jsx(Te, { id: "deleteMessage" }) }),
56214
- n.isMuted ? /* @__PURE__ */ h.jsx(hd, { "data-stats": qt.ChatMessageMenuUnmute, action: c, children: /* @__PURE__ */ h.jsx(Te, { id: "unmuteUser" }) }) : /* @__PURE__ */ h.jsx(hd, { "data-stats": qt.ChatMessageMenuMute, action: u, children: /* @__PURE__ */ h.jsx(Te, { id: "muteUser" }) })
56212
+ /* @__PURE__ */ h.jsx(hd, { "data-stats": i ? qt.ChatMessageMenuUnpin : qt.ChatMessageMenuPin, action: l, children: /* @__PURE__ */ h.jsx(Te, { id: i ? "unpinMessage" : "pinMessage" }) }),
56213
+ /* @__PURE__ */ h.jsx(hd, { "data-stats": qt.ChatMessageMenuDelete, action: u, children: /* @__PURE__ */ h.jsx(Te, { id: "deleteMessage" }) }),
56214
+ !a && (n.isMuted ? /* @__PURE__ */ h.jsx(hd, { "data-stats": qt.ChatMessageMenuUnmute, action: p, children: /* @__PURE__ */ h.jsx(Te, { id: "unmuteUser" }) }) : /* @__PURE__ */ h.jsx(hd, { "data-stats": qt.ChatMessageMenuMute, action: c, children: /* @__PURE__ */ h.jsx(Te, { id: "muteUser" }) }))
56215
56215
  ] });
56216
56216
  }, Wle = _le(Ule), Hle = (e, t) => {
56217
56217
  if (!e || !t)
@@ -60221,7 +60221,7 @@ const ode = (e) => {
60221
60221
  /* @__PURE__ */ h.jsx(Ea, { onBack: () => e.back(), children: /* @__PURE__ */ h.jsx(oi, { children: /* @__PURE__ */ h.jsx(Te, { id: "userList" }) }) }),
60222
60222
  /* @__PURE__ */ h.jsx(kde, { users: n })
60223
60223
  ] });
60224
- }, LA = st(Nde), jde = "@vlprojects-chat/chat", Mde = "vlprojects", Dde = "0.33.0", Lde = "vlprojects chat", Bde = "ISC", Fde = "dist/index.d.ts", Vde = "./dist/index.mjs", _de = "./dist/index.mjs", Ude = [
60224
+ }, LA = st(Nde), jde = "@vlprojects-chat/chat", Mde = "vlprojects", Dde = "0.33.1", Lde = "vlprojects chat", Bde = "ISC", Fde = "dist/index.d.ts", Vde = "./dist/index.mjs", _de = "./dist/index.mjs", Ude = [
60225
60225
  "dist"
60226
60226
  ], Wde = {
60227
60227
  type: "git",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@vlprojects-chat/chat",
3
3
  "author": "vlprojects",
4
- "version": "0.33.1",
4
+ "version": "0.33.2-LK-97-self-block.1",
5
5
  "description": "vlprojects chat",
6
6
  "license": "ISC",
7
7
  "types": "dist/index.d.ts",