@seamly/web-ui 19.1.5 → 19.1.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.
@@ -12571,9 +12571,9 @@ const seamlyStateReducer = (state, action) => {
12571
12571
 
12572
12572
 
12573
12573
  if (accountHasUploads && (eventType === eventTypes.message || eventType === eventTypes.participant) && !payload.fromClient) {
12574
- const {
12575
- type: entryType
12576
- } = payload.entry || {};
12574
+ var _payload$entry;
12575
+
12576
+ const entryType = payload === null || payload === void 0 ? void 0 : (_payload$entry = payload.entry) === null || _payload$entry === void 0 ? void 0 : _payload$entry.type;
12577
12577
  newOptions = seamly_utils_objectSpread(seamly_utils_objectSpread({}, newOptions), {}, {
12578
12578
  features: seamly_utils_objectSpread(seamly_utils_objectSpread({}, newOptions.features), {}, {
12579
12579
  uploads: seamly_utils_objectSpread(seamly_utils_objectSpread({}, newOptions.features.uploads), {}, {
@@ -12701,12 +12701,9 @@ const seamlyStateReducer = (state, action) => {
12701
12701
  const newFeaturesHasUpload = newFeatures.hasOwnProperty(featureKeys.uploads); // Only set uploads if it was initialised by the account config.
12702
12702
 
12703
12703
  if (newFeaturesHasUpload) {
12704
- const {
12705
- payload: lastParticipantEventPayload
12706
- } = lastParticipantEvent;
12707
- const {
12708
- type: entryType
12709
- } = lastParticipantEventPayload.entry || {};
12704
+ var _lastParticipantEvent, _lastParticipantEvent2;
12705
+
12706
+ const entryType = lastParticipantEvent === null || lastParticipantEvent === void 0 ? void 0 : (_lastParticipantEvent = lastParticipantEvent.payload) === null || _lastParticipantEvent === void 0 ? void 0 : (_lastParticipantEvent2 = _lastParticipantEvent.entry) === null || _lastParticipantEvent2 === void 0 ? void 0 : _lastParticipantEvent2.type;
12710
12707
  newFeatures = seamly_utils_objectSpread(seamly_utils_objectSpread({}, newFeatures), {}, {
12711
12708
  uploads: {
12712
12709
  enabled: !!(uploads && uploads.enabled),