@cloudflare/realtimekit 1.2.4-staging.5 → 1.2.4-staging.6

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/index.es.js CHANGED
@@ -13213,8 +13213,6 @@ let ze = (Ag = class extends jt {
13213
13213
  return u(this, null, function* () {
13214
13214
  if (!n(this, No, Lu))
13215
13215
  throw new k("Can`t unpin message without joining room", "0505");
13216
- if (!n(this, Z).permissions.pinParticipant)
13217
- throw new k("You do not have permission to unpin messages.", "0501");
13218
13216
  const e = this.messages.find((r) => r.id === t);
13219
13217
  if (e) {
13220
13218
  n(this, Oe).setPinState(e, !1);
@@ -28706,7 +28704,7 @@ let ei = (Kg = class {
28706
28704
  video: !0
28707
28705
  };
28708
28706
  return a.setValue("options", e), a.setValue("peerId", t), a.setValue("modules", o), a.setValue("sdkName", "web-core"), a.setValue("meetingId", r), a.setValue("apiBase", i.apiBase), a.setValue("baseURI", i.baseURI), a.setValue("userId", i.participantId), a.setValue("organizationId", i.orgId), a.setValue("authToken", e.authToken), a.setValue("overrides", (d = e.overrides) != null ? d : {}), a.setValue("env", lw({ baseURI: i.baseURI })), a.setValue("defaults", c), a.setValue("onError", e.onError || (() => {
28709
- })), a.setValue("cachedUserDetails", Rs(e.cachedUserDetails)), a.setValue("sdkVersion", "1.2.4-staging.5"), (l = e.modules) != null && l.experimentalAudioPlayback && a.setValue("audioPlayback", new YO()), a;
28707
+ })), a.setValue("cachedUserDetails", Rs(e.cachedUserDetails)), a.setValue("sdkVersion", "1.2.4-staging.6"), (l = e.modules) != null && l.experimentalAudioPlayback && a.setValue("audioPlayback", new YO()), a;
28710
28708
  }
28711
28709
  join() {
28712
28710
  return u(this, null, function* () {
package/dist/index.es5.js CHANGED
@@ -12365,22 +12365,16 @@ var pI = Object.defineProperty, hI = Object.getOwnPropertyDescriptor, gt = funct
12365
12365
  }
12366
12366
  throw new F("Can`t unpin message without joining room", "0505");
12367
12367
  case 2:
12368
- if (l(this, z)[z].permissions.pinParticipant) {
12369
- u.next = 4;
12370
- break;
12371
- }
12372
- throw new F("You do not have permission to unpin messages.", "0501");
12373
- case 4:
12374
12368
  if (i = this.messages.find(function(c) {
12375
12369
  return c.id === a;
12376
12370
  }), !i) {
12377
- u.next = 8;
12371
+ u.next = 6;
12378
12372
  break;
12379
12373
  }
12380
12374
  return l(this, Ae)[Ae].setPinState(i, !1), u.abrupt("return");
12381
- case 8:
12375
+ case 6:
12382
12376
  throw new F("No message found with id: ".concat(a), "0504");
12383
- case 9:
12377
+ case 7:
12384
12378
  case "end":
12385
12379
  return u.stop();
12386
12380
  }