sceyt-chat-react-uikit 1.7.1-beta.7 → 1.7.1-beta.8

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/index.js CHANGED
@@ -10082,14 +10082,7 @@ function updateMessageOnMap(channelId, updatedMessage) {
10082
10082
  messagesList.push(_extends({}, mes, updatedMessageData));
10083
10083
  continue;
10084
10084
  } else {
10085
- var _updatedMessage$param;
10086
- updatedMessageData = _extends({}, mes, updatedMessage.params, {
10087
- attachments: [].concat(mes.attachments, ((_updatedMessage$param = updatedMessage.params) === null || _updatedMessage$param === void 0 ? void 0 : _updatedMessage$param.attachments) || []).filter(function (att, index, self) {
10088
- return index === self.findIndex(function (t) {
10089
- return t.url === att.url && t.type === att.type && t.name === att.name;
10090
- });
10091
- })
10092
- });
10085
+ updatedMessageData = _extends({}, mes, updatedMessage.params);
10093
10086
  messagesList.push(_extends({}, mes, updatedMessageData));
10094
10087
  continue;
10095
10088
  }
@@ -15256,6 +15249,8 @@ function searchChannels(action) {
15256
15249
  _channel = _step2.value;
15257
15250
  channelsMap[_channel.id] = _channel;
15258
15251
  }
15252
+ chatsGroups = [];
15253
+ publicChannels = [];
15259
15254
  handleChannels(Object.values(channelsMap));
15260
15255
  channelsToAdd = channelsData.channels.filter(function (channel) {
15261
15256
  return channel.type === DEFAULT_CHANNEL_TYPE.PUBLIC || channel.type === DEFAULT_CHANNEL_TYPE.BROADCAST;
@@ -15443,6 +15438,8 @@ function searchChannelsForForward(action) {
15443
15438
  _channel2 = _step4.value;
15444
15439
  channelsMap[_channel2.id] = _channel2;
15445
15440
  }
15441
+ _chatsGroups = [];
15442
+ _publicChannels = [];
15446
15443
  handleChannels(Object.values(channelsMap));
15447
15444
  channelsToAdd = channelsData.channels.filter(function (channel) {
15448
15445
  return channel.type === DEFAULT_CHANNEL_TYPE.PUBLIC || channel.type === DEFAULT_CHANNEL_TYPE.BROADCAST;
@@ -31226,6 +31223,7 @@ var OGMetadata = function OGMetadata(_ref) {
31226
31223
  });
31227
31224
  }, function () {
31228
31225
  console.log('Failed to fetch OG metadata');
31226
+ setMetadata(null);
31229
31227
  });
31230
31228
  if (_temp && _temp.then) return _temp.then(function () {});
31231
31229
  }
package/index.modern.js CHANGED
@@ -10061,14 +10061,7 @@ function updateMessageOnMap(channelId, updatedMessage) {
10061
10061
  messagesList.push(_extends({}, mes, updatedMessageData));
10062
10062
  continue;
10063
10063
  } else {
10064
- var _updatedMessage$param;
10065
- updatedMessageData = _extends({}, mes, updatedMessage.params, {
10066
- attachments: [].concat(mes.attachments, ((_updatedMessage$param = updatedMessage.params) === null || _updatedMessage$param === void 0 ? void 0 : _updatedMessage$param.attachments) || []).filter(function (att, index, self) {
10067
- return index === self.findIndex(function (t) {
10068
- return t.url === att.url && t.type === att.type && t.name === att.name;
10069
- });
10070
- })
10071
- });
10064
+ updatedMessageData = _extends({}, mes, updatedMessage.params);
10072
10065
  messagesList.push(_extends({}, mes, updatedMessageData));
10073
10066
  continue;
10074
10067
  }
@@ -15235,6 +15228,8 @@ function searchChannels(action) {
15235
15228
  _channel = _step2.value;
15236
15229
  channelsMap[_channel.id] = _channel;
15237
15230
  }
15231
+ chatsGroups = [];
15232
+ publicChannels = [];
15238
15233
  handleChannels(Object.values(channelsMap));
15239
15234
  channelsToAdd = channelsData.channels.filter(function (channel) {
15240
15235
  return channel.type === DEFAULT_CHANNEL_TYPE.PUBLIC || channel.type === DEFAULT_CHANNEL_TYPE.BROADCAST;
@@ -15422,6 +15417,8 @@ function searchChannelsForForward(action) {
15422
15417
  _channel2 = _step4.value;
15423
15418
  channelsMap[_channel2.id] = _channel2;
15424
15419
  }
15420
+ _chatsGroups = [];
15421
+ _publicChannels = [];
15425
15422
  handleChannels(Object.values(channelsMap));
15426
15423
  channelsToAdd = channelsData.channels.filter(function (channel) {
15427
15424
  return channel.type === DEFAULT_CHANNEL_TYPE.PUBLIC || channel.type === DEFAULT_CHANNEL_TYPE.BROADCAST;
@@ -31205,6 +31202,7 @@ var OGMetadata = function OGMetadata(_ref) {
31205
31202
  });
31206
31203
  }, function () {
31207
31204
  console.log('Failed to fetch OG metadata');
31205
+ setMetadata(null);
31208
31206
  });
31209
31207
  if (_temp && _temp.then) return _temp.then(function () {});
31210
31208
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sceyt-chat-react-uikit",
3
- "version": "1.7.1-beta.7",
3
+ "version": "1.7.1-beta.8",
4
4
  "description": "Interactive React UI Components for Sceyt Chat.",
5
5
  "author": "Sceyt",
6
6
  "license": "MIT",