@webex/plugin-meetings 3.12.0-next.139 → 3.12.0-next.140
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/aiEnableRequest/index.js +1 -1
- package/dist/breakouts/breakout.js +1 -1
- package/dist/breakouts/index.js +1 -1
- package/dist/interpretation/index.js +1 -1
- package/dist/interpretation/siLanguage.js +1 -1
- package/dist/locus-info/index.js +200 -71
- package/dist/locus-info/index.js.map +1 -1
- package/dist/meetings/index.js +20 -8
- package/dist/meetings/index.js.map +1 -1
- package/dist/types/locus-info/index.d.ts +39 -1
- package/dist/types/meetings/index.d.ts +2 -1
- package/dist/webinar/index.js +1 -1
- package/package.json +1 -1
- package/src/locus-info/index.ts +135 -35
- package/src/meetings/index.ts +32 -15
- package/test/unit/spec/locus-info/index.js +290 -0
- package/test/unit/spec/meetings/index.js +71 -24
package/dist/meetings/index.js
CHANGED
|
@@ -730,8 +730,13 @@ var Meetings = exports.default = /*#__PURE__*/function (_WebexPlugin) {
|
|
|
730
730
|
|
|
731
731
|
// @ts-ignore
|
|
732
732
|
this.webex.internal.mercury.on(_constants.ONLINE, function () {
|
|
733
|
+
// Fire-and-forget sync on socket recovery. Unlike the reconnection manager (which awaits and
|
|
734
|
+
// retries), nothing consumes this promise, so catch its rejection to avoid an unhandled
|
|
735
|
+
// promise rejection (a transient guest classic-sync failure would otherwise crash Node hosts).
|
|
733
736
|
_this3.syncMeetings({
|
|
734
737
|
keepOnlyLocusMeetings: false
|
|
738
|
+
}).catch(function (error) {
|
|
739
|
+
_loggerProxy.default.logger.warn("Meetings:index#listenForEvents --> syncMeetings after ONLINE event failed: ".concat(error));
|
|
735
740
|
});
|
|
736
741
|
});
|
|
737
742
|
|
|
@@ -1805,7 +1810,8 @@ var Meetings = exports.default = /*#__PURE__*/function (_WebexPlugin) {
|
|
|
1805
1810
|
}
|
|
1806
1811
|
|
|
1807
1812
|
/**
|
|
1808
|
-
* Syncs all the meetings from server.
|
|
1813
|
+
* Syncs all the meetings from server. For unverified guests it skips the getActiveMeetings() call
|
|
1814
|
+
* (which Locus rejects for them) and instead resyncs each meeting individually via LocusInfo#sync.
|
|
1809
1815
|
* @param {boolean} keepOnlyLocusMeetings - whether the sync should keep only locus meetings or any other meeting in meetingCollection
|
|
1810
1816
|
* @returns {Promise<void>}
|
|
1811
1817
|
* @public
|
|
@@ -1821,6 +1827,7 @@ var Meetings = exports.default = /*#__PURE__*/function (_WebexPlugin) {
|
|
|
1821
1827
|
keepOnlyLocusMeetings,
|
|
1822
1828
|
_ref5$skipHashTreeSyn,
|
|
1823
1829
|
skipHashTreeSync,
|
|
1830
|
+
isUnverifiedGuest,
|
|
1824
1831
|
locusArray,
|
|
1825
1832
|
activeLocusUrl,
|
|
1826
1833
|
lociToUpdate,
|
|
@@ -1839,11 +1846,16 @@ var Meetings = exports.default = /*#__PURE__*/function (_WebexPlugin) {
|
|
|
1839
1846
|
while (1) switch (_context6.prev = _context6.next) {
|
|
1840
1847
|
case 0:
|
|
1841
1848
|
_ref5 = _args6.length > 0 && _args6[0] !== undefined ? _args6[0] : {}, _ref5$keepOnlyLocusMe = _ref5.keepOnlyLocusMeetings, keepOnlyLocusMeetings = _ref5$keepOnlyLocusMe === void 0 ? true : _ref5$keepOnlyLocusMe, _ref5$skipHashTreeSyn = _ref5.skipHashTreeSync, skipHashTreeSync = _ref5$skipHashTreeSyn === void 0 ? false : _ref5$skipHashTreeSyn;
|
|
1842
|
-
|
|
1849
|
+
// @ts-ignore
|
|
1850
|
+
isUnverifiedGuest = Boolean(this.webex.credentials.isUnverifiedGuest);
|
|
1851
|
+
if (!isUnverifiedGuest) {
|
|
1843
1852
|
_context6.next = 1;
|
|
1844
1853
|
break;
|
|
1845
1854
|
}
|
|
1846
1855
|
_loggerProxy.default.logger.info('Meetings:index#syncMeetings --> user is unverified guest, skipping calling Locus for meeting sync');
|
|
1856
|
+
|
|
1857
|
+
// Locus rejects getActiveMeetings() for unverified guests, so the per-meeting sync below
|
|
1858
|
+
// (with canSyncClassicLocus enabled) resyncs each classic meeting individually instead.
|
|
1847
1859
|
_context6.next = 7;
|
|
1848
1860
|
break;
|
|
1849
1861
|
case 1:
|
|
@@ -1918,17 +1930,17 @@ var Meetings = exports.default = /*#__PURE__*/function (_WebexPlugin) {
|
|
|
1918
1930
|
_loggerProxy.default.logger.error("Meetings:index#syncMeetings --> failed to sync meetings, ".concat(_t3));
|
|
1919
1931
|
throw _t3;
|
|
1920
1932
|
case 7:
|
|
1921
|
-
|
|
1922
|
-
|
|
1923
|
-
break;
|
|
1924
|
-
}
|
|
1925
|
-
// Trigger hash tree syncs for all remaining meetings
|
|
1933
|
+
// Resync each remaining meeting via LocusInfo#sync, which routes to hash tree or classic. For
|
|
1934
|
+
// signed-in users classic meetings were already synced above, so only the hash tree sync runs.
|
|
1926
1935
|
remainingMeetings = this.meetingCollection.getAll();
|
|
1927
1936
|
syncPromises = [];
|
|
1928
1937
|
for (_i2 = 0, _arr = (0, _values.default)(remainingMeetings); _i2 < _arr.length; _i2++) {
|
|
1929
1938
|
meeting = _arr[_i2];
|
|
1930
1939
|
if (meeting.locusInfo) {
|
|
1931
|
-
syncPromises.push(meeting.locusInfo.
|
|
1940
|
+
syncPromises.push(meeting.locusInfo.sync(meeting, {
|
|
1941
|
+
canSyncClassicLocus: isUnverifiedGuest,
|
|
1942
|
+
canSyncHashTree: !skipHashTreeSync
|
|
1943
|
+
}));
|
|
1932
1944
|
}
|
|
1933
1945
|
}
|
|
1934
1946
|
if (!(syncPromises.length > 0)) {
|