@acrobits/ipc-sdk 0.8.1-alpha.13 → 0.8.1-alpha.15

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/lib/ipc-sdk.js CHANGED
@@ -96,8 +96,8 @@ var R = function() {
96
96
  var u = c.value;
97
97
  u.remove(this);
98
98
  }
99
- } catch (v) {
100
- t = { error: v };
99
+ } catch (y) {
100
+ t = { error: y };
101
101
  } finally {
102
102
  try {
103
103
  c && !c.done && (e = a.return) && e.call(a);
@@ -112,26 +112,26 @@ var R = function() {
112
112
  if (E(l))
113
113
  try {
114
114
  l();
115
- } catch (v) {
116
- i = v instanceof N ? v.errors : [v];
115
+ } catch (y) {
116
+ i = y instanceof N ? y.errors : [y];
117
117
  }
118
- var d = this._finalizers;
119
- if (d) {
118
+ var p = this._finalizers;
119
+ if (p) {
120
120
  this._finalizers = null;
121
121
  try {
122
- for (var y = G(d), b = y.next(); !b.done; b = y.next()) {
122
+ for (var v = G(p), b = v.next(); !b.done; b = v.next()) {
123
123
  var k = b.value;
124
124
  try {
125
125
  se(k);
126
- } catch (v) {
127
- i = i ?? [], v instanceof N ? i = D(D([], $(i)), $(v.errors)) : i.push(v);
126
+ } catch (y) {
127
+ i = i ?? [], y instanceof N ? i = D(D([], $(i)), $(y.errors)) : i.push(y);
128
128
  }
129
129
  }
130
- } catch (v) {
131
- r = { error: v };
130
+ } catch (y) {
131
+ r = { error: y };
132
132
  } finally {
133
133
  try {
134
- b && !b.done && (s = y.return) && s.call(y);
134
+ b && !b.done && (s = v.return) && s.call(v);
135
135
  } finally {
136
136
  if (r)
137
137
  throw r.error;
@@ -857,8 +857,8 @@ var te = function() {
857
857
  var u = c.value;
858
858
  u.remove(this);
859
859
  }
860
- } catch (v) {
861
- t = { error: v };
860
+ } catch (y) {
861
+ t = { error: y };
862
862
  } finally {
863
863
  try {
864
864
  c && !c.done && (e = a.return) && e.call(a);
@@ -873,26 +873,26 @@ var te = function() {
873
873
  if (S(l))
874
874
  try {
875
875
  l();
876
- } catch (v) {
877
- i = v instanceof j ? v.errors : [v];
876
+ } catch (y) {
877
+ i = y instanceof j ? y.errors : [y];
878
878
  }
879
- var d = this._finalizers;
880
- if (d) {
879
+ var p = this._finalizers;
880
+ if (p) {
881
881
  this._finalizers = null;
882
882
  try {
883
- for (var y = he(d), b = y.next(); !b.done; b = y.next()) {
883
+ for (var v = he(p), b = v.next(); !b.done; b = v.next()) {
884
884
  var k = b.value;
885
885
  try {
886
886
  pe(k);
887
- } catch (v) {
888
- i = i ?? [], v instanceof j ? i = K(K([], W(i)), W(v.errors)) : i.push(v);
887
+ } catch (y) {
888
+ i = i ?? [], y instanceof j ? i = K(K([], W(i)), W(y.errors)) : i.push(y);
889
889
  }
890
890
  }
891
- } catch (v) {
892
- r = { error: v };
891
+ } catch (y) {
892
+ r = { error: y };
893
893
  } finally {
894
894
  try {
895
- b && !b.done && (s = y.return) && s.call(y);
895
+ b && !b.done && (s = v.return) && s.call(v);
896
896
  } finally {
897
897
  if (r)
898
898
  throw r.error;
@@ -1189,7 +1189,7 @@ var bt = function(n) {
1189
1189
  }
1190
1190
  }, t;
1191
1191
  }(re);
1192
- function p(n, t) {
1192
+ function d(n, t) {
1193
1193
  return P(function(e, r) {
1194
1194
  var s = 0;
1195
1195
  e.subscribe(_(r, function(i) {
@@ -1321,7 +1321,7 @@ class xt {
1321
1321
  */
1322
1322
  determineContext() {
1323
1323
  return Xe(1e3).pipe(
1324
- p(() => (this.isEmbedded() ? this.currentContext = "user" : this.currentContext = "guest", this.currentContext)),
1324
+ d(() => (this.isEmbedded() ? this.currentContext = "user" : this.currentContext = "guest", this.currentContext)),
1325
1325
  m(1)
1326
1326
  );
1327
1327
  }
@@ -1338,9 +1338,9 @@ class xt {
1338
1338
  e.protocolVersions = this.supportedVersions, this.logCreated(t, e);
1339
1339
  const r = this.incomingMessages$.pipe(
1340
1340
  g((s) => s.type === t && s.replyTo === e.id),
1341
- p((s) => s),
1342
- f(this.logReceived(t)),
1343
- p((s) => {
1341
+ d((s) => s),
1342
+ f(this.logReceived()),
1343
+ d((s) => {
1344
1344
  if (this.supportedVersions.some((i) => Ct(i, s.protocolVersion)))
1345
1345
  throw new le(s.protocolVersion, this.supportedVersions[0]);
1346
1346
  return s;
@@ -1368,8 +1368,8 @@ class xt {
1368
1368
  this.logCreated(t, e);
1369
1369
  const r = this.incomingMessages$.pipe(
1370
1370
  g((s) => s.type === t && s.replyTo === e.id),
1371
- p((s) => s),
1372
- f(this.logReceived(t)),
1371
+ d((s) => s),
1372
+ f(this.logReceived()),
1373
1373
  m(1)
1374
1374
  );
1375
1375
  return this.logService.debug(`Created ${t} Reply handler`), this.port2.postMessage(e), this.logSent(t, e), r;
@@ -1399,8 +1399,8 @@ class xt {
1399
1399
  region: a,
1400
1400
  joinMicMuted: c,
1401
1401
  joinWithoutCamera: u
1402
- } = t, l = "JOINING ROOM", d = this.createMessage(l, !1);
1403
- d.roomName = e, d.jwtToken = i, d.serverUrl = o, d.region = a, d.roomInvite = r, d.joinMicMuted = c ?? !1, d.joinWithoutCamera = u ?? !1, d.displayName = s, this.logCreated(l, d), this.port2.postMessage(d), this.logSent(l, d);
1402
+ } = t, l = "JOINING ROOM", p = this.createMessage(l, !1);
1403
+ p.roomName = e, p.jwtToken = i, p.serverUrl = o, p.region = a, p.roomInvite = r, p.joinMicMuted = c ?? !1, p.joinWithoutCamera = u ?? !1, p.displayName = s, this.logCreated(l, p), this.port2.postMessage(p), this.logSent(l, p);
1404
1404
  }
1405
1405
  /**
1406
1406
  * Sends a {@link LeavingRoomMessage} lifecycle message to the Host app.
@@ -1451,9 +1451,9 @@ class xt {
1451
1451
  const t = "JOIN ROOM";
1452
1452
  return this.incomingMessages$.pipe(
1453
1453
  g((e) => e.type === t && e.target === "client"),
1454
- p((e) => e),
1455
- f(this.logReceived(t)),
1456
- p((e) => e)
1454
+ d((e) => e),
1455
+ f(this.logReceived()),
1456
+ d((e) => e)
1457
1457
  );
1458
1458
  }
1459
1459
  /**
@@ -1487,9 +1487,9 @@ class xt {
1487
1487
  const t = "LEAVE ROOM";
1488
1488
  return this.incomingMessages$.pipe(
1489
1489
  g((e) => e.type === t && e.target === "client"),
1490
- p((e) => e),
1491
- f(this.logReceived(t)),
1492
- p((e) => e)
1490
+ d((e) => e),
1491
+ f(this.logReceived()),
1492
+ d((e) => e)
1493
1493
  );
1494
1494
  }
1495
1495
  /**
@@ -1524,9 +1524,9 @@ class xt {
1524
1524
  const t = "CONFIG";
1525
1525
  return this.incomingMessages$.pipe(
1526
1526
  g((e) => e.type === t && e.target === "client"),
1527
- p((e) => e),
1528
- f(this.logReceived(t)),
1529
- p((e) => ({
1527
+ d((e) => e),
1528
+ f(this.logReceived()),
1529
+ d((e) => ({
1530
1530
  preferredCameraType: e.preferredCameraType,
1531
1531
  preferredMicType: e.preferredMicType,
1532
1532
  preferredOutputType: e.preferredOutputType,
@@ -1547,9 +1547,9 @@ class xt {
1547
1547
  r.sourceTypes = t, this.logCreated(e, r);
1548
1548
  const s = this.incomingMessages$.pipe(
1549
1549
  g((i) => i.type === e && i.replyTo === r.id),
1550
- p((i) => i),
1551
- f(this.logReceived(e)),
1552
- p((i) => i),
1550
+ d((i) => i),
1551
+ f(this.logReceived()),
1552
+ d((i) => i),
1553
1553
  m(1)
1554
1554
  );
1555
1555
  return this.logService.debug(`Created ${e} Reply handler`), this.port2.postMessage(r), this.logSent(e, r), s;
@@ -1561,9 +1561,9 @@ class xt {
1561
1561
  let i, o;
1562
1562
  if (e && r ? (i = this.createMessage(s, !1, r), i.result = e) : (i = this.createMessage(s), o = this.incomingMessages$.pipe(
1563
1563
  g((a) => a.type === s && a.replyTo === i.id),
1564
- p((a) => a),
1565
- f(this.logReceived(s)),
1566
- p((a) => a),
1564
+ d((a) => a),
1565
+ f(this.logReceived()),
1566
+ d((a) => a),
1567
1567
  m(1)
1568
1568
  ), this.logService.debug(`Created ${s} Reply handler`)), i.layout = t, this.logCreated(s, i), this.port2.postMessage(i), this.logSent(s, i), o)
1569
1569
  return o;
@@ -1605,9 +1605,9 @@ class xt {
1605
1605
  const t = "LAYOUT CHANGE";
1606
1606
  return this.incomingMessages$.pipe(
1607
1607
  g((e) => e.type === t && e.target === "client" && e.replyTo === null),
1608
- p((e) => e),
1609
- f(this.logReceived(t)),
1610
- p((e) => e)
1608
+ d((e) => e),
1609
+ f(this.logReceived()),
1610
+ d((e) => e)
1611
1611
  );
1612
1612
  }
1613
1613
  requestOAuthToken(t) {
@@ -1618,8 +1618,8 @@ class xt {
1618
1618
  r.providerTypes = t, this.logCreated(e, r);
1619
1619
  const s = this.incomingMessages$.pipe(
1620
1620
  g((i) => i.type === e && i.replyTo === r.id),
1621
- p((i) => i),
1622
- f(this.logReceived(e)),
1621
+ d((i) => i),
1622
+ f(this.logReceived()),
1623
1623
  m(1)
1624
1624
  );
1625
1625
  return this.logService.debug(`Created ${e} Reply handler`), this.port2.postMessage(r), this.logSent(e, r), s;
@@ -1649,9 +1649,9 @@ class xt {
1649
1649
  o.streamType = e, o.streamId = t, o.contactType = r, o.currentContacts = s, this.logCreated(i, o);
1650
1650
  const a = this.incomingMessages$.pipe(
1651
1651
  g((c) => c.type === i && c.replyTo === o.id),
1652
- f(this.logReceived(i)),
1652
+ f(this.logReceived()),
1653
1653
  // validate if `streamId` is the same as we sent
1654
- p((c) => {
1654
+ d((c) => {
1655
1655
  const u = c;
1656
1656
  if (u.streamId !== t)
1657
1657
  throw new rt(u.streamId, t);
@@ -1678,8 +1678,8 @@ class xt {
1678
1678
  r.contacts = [...t], this.logCreated(e, r);
1679
1679
  const s = this.incomingMessages$.pipe(
1680
1680
  g((i) => i.type === e && i.replyTo === r.id),
1681
- f(this.logReceived(e)),
1682
- p((i) => i),
1681
+ f(this.logReceived()),
1682
+ d((i) => i),
1683
1683
  m(1)
1684
1684
  );
1685
1685
  return this.logService.debug(`Created ${e} Reply handler`), this.port2.postMessage(r), this.logSent(e, r), s;
@@ -1716,8 +1716,8 @@ class xt {
1716
1716
  const t = "PUSH MESSAGE";
1717
1717
  return this.incomingMessages$.pipe(
1718
1718
  g((e) => e.type === t && e.target === "client"),
1719
- p((e) => e),
1720
- f(this.logReceived(t))
1719
+ d((e) => e),
1720
+ f(this.logReceived())
1721
1721
  );
1722
1722
  }
1723
1723
  /**
@@ -1736,8 +1736,8 @@ class xt {
1736
1736
  this.logCreated(t, e);
1737
1737
  const r = this.incomingMessages$.pipe(
1738
1738
  g((s) => s.type === t && s.replyTo === e.id),
1739
- f(this.logReceived(t)),
1740
- p((s) => s),
1739
+ f(this.logReceived()),
1740
+ d((s) => s),
1741
1741
  m(1)
1742
1742
  );
1743
1743
  return this.logService.debug(`Created ${t} Reply handler`), this.port2.postMessage(e), this.logSent(t, e), r;
@@ -1777,13 +1777,13 @@ class xt {
1777
1777
  g(
1778
1778
  (e) => e.type === t && e.target === "client" && e.replyTo === null && e.expectReply === !1
1779
1779
  ),
1780
- p((e) => {
1780
+ d((e) => {
1781
1781
  if (e.pushToken && e.selector && e.appId)
1782
1782
  return e;
1783
1783
  throw new Error("PushTokenMessage is missing required PushTokenPayload fields");
1784
1784
  }),
1785
1785
  f((e) => e.pushToken),
1786
- f(this.logReceived(t))
1786
+ f(this.logReceived())
1787
1787
  );
1788
1788
  }
1789
1789
  /**
@@ -1799,8 +1799,8 @@ class xt {
1799
1799
  const t = "BADGE QUERY";
1800
1800
  return this.incomingMessages$.pipe(
1801
1801
  g((e) => e.type === t && e.target === "client"),
1802
- p((e) => e),
1803
- f(this.logReceived(t))
1802
+ d((e) => e),
1803
+ f(this.logReceived())
1804
1804
  );
1805
1805
  }
1806
1806
  /**
@@ -1857,8 +1857,8 @@ class xt {
1857
1857
  const t = "LIFECYCLE";
1858
1858
  return this.incomingMessages$.pipe(
1859
1859
  g((e) => e.type === t && e.target === "client"),
1860
- p((e) => e),
1861
- f(this.logReceived(t))
1860
+ d((e) => e),
1861
+ f(this.logReceived())
1862
1862
  );
1863
1863
  }
1864
1864
  /**
@@ -1897,8 +1897,8 @@ class xt {
1897
1897
  const t = "REQUEST LOGS";
1898
1898
  return this.incomingMessages$.pipe(
1899
1899
  g((e) => e.type === t && e.target === "client"),
1900
- p((e) => e),
1901
- f(this.logReceived(t))
1900
+ d((e) => e),
1901
+ f(this.logReceived())
1902
1902
  );
1903
1903
  }
1904
1904
  /**
@@ -1980,9 +1980,9 @@ class xt {
1980
1980
  g(
1981
1981
  (l) => l.type === o && l.replyTo === a.id
1982
1982
  ),
1983
- f(this.logReceived(o)),
1983
+ f(this.logReceived()),
1984
1984
  f(() => c++),
1985
- p((l) => (l.result === "success" && (l.chunkHash = l.chunkHash.toLowerCase(), l.fileHash = l.fileHash.toLowerCase()), l)),
1985
+ d((l) => (l.result === "success" && (l.chunkHash = l.chunkHash.toLowerCase(), l.fileHash = l.fileHash.toLowerCase()), l)),
1986
1986
  wt((l) => l.result === "success" && c < l.totalChunks, !0)
1987
1987
  );
1988
1988
  return this.port2.postMessage(a), this.logSent(o, a), u;
@@ -2035,8 +2035,8 @@ class xt {
2035
2035
  g(
2036
2036
  (e) => e.type === t && e.target === "client" && e.replyTo === null
2037
2037
  ),
2038
- p((e) => (e.fileHash = e.fileHash.toLowerCase(), e)),
2039
- f(this.logReceived(t))
2038
+ d((e) => (e.fileHash = e.fileHash.toLowerCase(), e)),
2039
+ f(this.logReceived())
2040
2040
  );
2041
2041
  }
2042
2042
  /**
@@ -2085,11 +2085,11 @@ class xt {
2085
2085
  g(
2086
2086
  (l) => l.type === a && l.replyTo === c.id
2087
2087
  ),
2088
- p((l) => {
2089
- var d;
2090
- return l.files = (d = l.files) == null ? void 0 : d.map((y) => (y.original.fileHash = y.original.fileHash.toLowerCase(), y.preview && (y.preview.fileHash = y.preview.fileHash.toLowerCase()), y)), l;
2088
+ d((l) => {
2089
+ var p;
2090
+ return l.files = (p = l.files) == null ? void 0 : p.map((v) => (v.original.fileHash = v.original.fileHash.toLowerCase(), v.preview && (v.preview.fileHash = v.preview.fileHash.toLowerCase()), v)), l;
2091
2091
  }),
2092
- f(this.logReceived(a)),
2092
+ f(this.logReceived()),
2093
2093
  m(1)
2094
2094
  );
2095
2095
  return this.port2.postMessage(c), this.logSent(a, c), u;
@@ -2115,8 +2115,8 @@ class xt {
2115
2115
  o.url = t, o.key = e, o.fileName = r, o.mimeType = s, this.logCreated(i, o);
2116
2116
  const a = this.incomingMessages$.pipe(
2117
2117
  g((c) => c.type === i && c.replyTo === o.id),
2118
- f(this.logReceived(i)),
2119
- p((c) => c),
2118
+ f(this.logReceived()),
2119
+ d((c) => c),
2120
2120
  m(1)
2121
2121
  );
2122
2122
  return this.port2.postMessage(o), this.logSent(i, o), a;
@@ -2151,8 +2151,8 @@ class xt {
2151
2151
  g(
2152
2152
  (a) => a.type === "FILE DOWNLOAD PROGRESS UPDATE" && a.replyTo === i.id
2153
2153
  ),
2154
- f(this.logReceived(s)),
2155
- p((a) => (a.fileHash && (a.fileHash = a.fileHash.toLowerCase()), a)),
2154
+ f((a) => this.logReceived(a)),
2155
+ d((a) => (a.fileHash && (a.fileHash = a.fileHash.toLowerCase()), a)),
2156
2156
  m(1)
2157
2157
  );
2158
2158
  return this.port2.postMessage(i), this.logSent(s, i), o;
@@ -2172,8 +2172,8 @@ class xt {
2172
2172
  g(
2173
2173
  (e) => e.type === t && e.target === "client" && e.replyTo === null
2174
2174
  ),
2175
- p((e) => (e.fileHash && (e.fileHash = e.fileHash.toLowerCase()), e)),
2176
- f(this.logReceived(t))
2175
+ d((e) => (e.fileHash && (e.fileHash = e.fileHash.toLowerCase()), e)),
2176
+ f(this.logReceived())
2177
2177
  );
2178
2178
  }
2179
2179
  /**
@@ -2202,8 +2202,8 @@ class xt {
2202
2202
  g(
2203
2203
  (a) => a.type === "FILE UPLOAD PROGRESS UPDATE" && a.replyTo === i.id
2204
2204
  ),
2205
- f(this.logReceived(s)),
2206
- p((a) => (a.fileHash && (a.fileHash = a.fileHash.toLowerCase()), a)),
2205
+ f(this.logReceived()),
2206
+ d((a) => (a.fileHash && (a.fileHash = a.fileHash.toLowerCase()), a)),
2207
2207
  m(1)
2208
2208
  );
2209
2209
  return this.port2.postMessage(i), this.logSent(s, i), o;
@@ -2227,8 +2227,8 @@ class xt {
2227
2227
  g(
2228
2228
  (e) => e.type === t && e.target === "client" && e.replyTo === null
2229
2229
  ),
2230
- p((e) => (e.fileHash && (e.fileHash = e.fileHash.toLowerCase()), e)),
2231
- f(this.logReceived(t))
2230
+ d((e) => (e.fileHash && (e.fileHash = e.fileHash.toLowerCase()), e)),
2231
+ f(this.logReceived())
2232
2232
  );
2233
2233
  }
2234
2234
  /**
@@ -2241,6 +2241,7 @@ class xt {
2241
2241
  * file.
2242
2242
  *
2243
2243
  * @param fileHash - The SHA256 hash of the file to open.
2244
+ * @param mimeType - The MIME type of the file to open.
2244
2245
  * @param fileName - _Optional_. The name of the file to open.
2245
2246
  * @param streamId - _Optional_. The ID of the message stream from which the file is opened from.
2246
2247
  * @param url - _Optional_. URL from where the host can download the file if it isn't in storage.
@@ -2251,18 +2252,18 @@ class xt {
2251
2252
  * @returns An observable which emits a {@link FileOpenMessageReply} instance containing the
2252
2253
  * result of the request. Emits once.
2253
2254
  */
2254
- sendFileOpenMessage(t, e, r, s, i, o, a) {
2255
+ sendFileOpenMessage(t, e, r, s, i, o, a, c) {
2255
2256
  if (!this.isEmbedded())
2256
2257
  throw new h(this.currentContext);
2257
- const c = "FILE OPEN", u = this.createMessage(c, !0);
2258
- u.fileHash = t.toLowerCase(), u.fileName = e, u.streamId = r, u.url = s, u.correlationId = i, u.key = o, u.sender = a, this.logCreated(c, u);
2259
- const l = this.incomingMessages$.pipe(
2260
- g((d) => d.type === c && d.replyTo === u.id),
2261
- f(this.logReceived(c)),
2262
- p((d) => d),
2258
+ const u = "FILE OPEN", l = this.createMessage(u, !0);
2259
+ l.fileHash = t.toLowerCase(), l.mimeType = e, l.fileName = r, l.streamId = s, l.url = i, l.correlationId = o, l.key = a, l.sender = c, this.logCreated(u, l);
2260
+ const p = this.incomingMessages$.pipe(
2261
+ g((v) => v.type === u && v.replyTo === l.id),
2262
+ f(this.logReceived()),
2263
+ d((v) => v),
2263
2264
  m(1)
2264
2265
  );
2265
- return this.port2.postMessage(u), this.logSent(c, u), l;
2266
+ return this.port2.postMessage(l), this.logSent(u, l), p;
2266
2267
  }
2267
2268
  /**
2268
2269
  * Sends a {@link CancelFileOpenMessage} to the Host app, to cancel opening or download of a file
@@ -2300,8 +2301,8 @@ class xt {
2300
2301
  s.hash = t.toLowerCase(), s.streamId = e, this.logCreated(r, s);
2301
2302
  const i = this.incomingMessages$.pipe(
2302
2303
  g((o) => o.type === r && o.replyTo === s.id),
2303
- f(this.logReceived(r)),
2304
- p((o) => o),
2304
+ f(this.logReceived()),
2305
+ d((o) => o),
2305
2306
  m(1)
2306
2307
  );
2307
2308
  return this.port2.postMessage(s), this.logSent(r, s), i;
@@ -2370,15 +2371,15 @@ class xt {
2370
2371
  sendSendMessageMessage(t, e, r, s = "TEXT", i, o, a, c = !0, u) {
2371
2372
  if (!this.isEmbedded())
2372
2373
  throw new h(this.currentContext);
2373
- const l = "SEND MESSAGE", d = this.createMessage(l, !0);
2374
- d.streamId = t, d.correlationId = e, d.body = r, d.messageType = s, d.mentions = i ?? [], d.attachments = (o == null ? void 0 : o.map((b) => b.toLowerCase())) ?? [], d.relatedMessageId = a, d.setCursors = c, d.threadId = u, this.logCreated(l, d);
2375
- const y = this.incomingMessages$.pipe(
2376
- g((b) => b.type === l && b.replyTo === d.id),
2377
- f(this.logReceived(l)),
2378
- p((b) => b),
2374
+ const l = "SEND MESSAGE", p = this.createMessage(l, !0);
2375
+ p.streamId = t, p.correlationId = e, p.body = r, p.messageType = s, p.mentions = i ?? [], p.attachments = (o == null ? void 0 : o.map((b) => b.toLowerCase())) ?? [], p.relatedMessageId = a, p.setCursors = c, p.threadId = u, this.logCreated(l, p);
2376
+ const v = this.incomingMessages$.pipe(
2377
+ g((b) => b.type === l && b.replyTo === p.id),
2378
+ f(this.logReceived()),
2379
+ d((b) => b),
2379
2380
  m(1)
2380
2381
  );
2381
- return this.port2.postMessage(d), this.logSent(l, d), y;
2382
+ return this.port2.postMessage(p), this.logSent(l, p), v;
2382
2383
  }
2383
2384
  /**
2384
2385
  * Sends a {@link CancelSendMessageMessage} to the Host app, to cancel a message that was being
@@ -2430,8 +2431,8 @@ class xt {
2430
2431
  g(
2431
2432
  (o) => o.type === "SEND MESSAGE STATUS UPDATE" && o.replyTo === s.id
2432
2433
  ),
2433
- f(this.logReceived(r)),
2434
- p((o) => o),
2434
+ f(this.logReceived()),
2435
+ d((o) => o),
2435
2436
  m(1)
2436
2437
  );
2437
2438
  return this.port2.postMessage(s), this.logSent(r, s), i;
@@ -2449,8 +2450,8 @@ class xt {
2449
2450
  const t = "SEND MESSAGE STATUS UPDATE";
2450
2451
  return this.incomingMessages$.pipe(
2451
2452
  g((e) => e.type === t && e.target === "client" && e.replyTo === null),
2452
- p((e) => e),
2453
- f(this.logReceived(t))
2453
+ d((e) => e),
2454
+ f(this.logReceived())
2454
2455
  );
2455
2456
  }
2456
2457
  /**
@@ -2504,10 +2505,13 @@ class xt {
2504
2505
  compareVersion(t) {
2505
2506
  return ne(this.negotiatedProtocolVersion, t);
2506
2507
  }
2507
- logReceived(t, e) {
2508
- e && It(e) && (e = { ...e, data: "..." });
2509
- const r = (s) => this.logService.debug(`[IPC] Received ${t} message`, s);
2510
- return e && r(e), r;
2508
+ logReceived(t) {
2509
+ const e = (r) => this.logService.debug(`[IPC] Received ${r.type} message`, r);
2510
+ if (t) {
2511
+ It(t) && (t = { ...t, data: "..." }), e(t);
2512
+ return;
2513
+ } else
2514
+ return e;
2511
2515
  }
2512
2516
  logSent(t, e) {
2513
2517
  e.type === "FILE REQUEST" && e.result === "success" && (e = { ...e, data: "..." }), this.logService.debug(`[IPC] Sent ${t} message`, e);