sceyt-chat-react-uikit 1.7.1-beta.14 → 1.7.1-beta.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/index.js CHANGED
@@ -10606,8 +10606,8 @@ var messageSlice = createSlice({
10606
10606
  var _action$payload8 = action.payload,
10607
10607
  uploaded = _action$payload8.uploaded,
10608
10608
  total = _action$payload8.total,
10609
- attachmentId = _action$payload8.attachmentId,
10610
- progress = _action$payload8.progress;
10609
+ attachmentId = _action$payload8.attachmentId;
10610
+ var progress = uploaded / total;
10611
10611
  var updateData = {
10612
10612
  uploaded: uploaded,
10613
10613
  total: total,
@@ -37545,7 +37545,7 @@ var SendMessageInput = function SendMessageInput(_ref3) {
37545
37545
  if (attachments.length) {
37546
37546
  var videoAttachment = false;
37547
37547
  attachments.forEach(function (att) {
37548
- if (att.type === 'video' || att.data.type.split('/')[0] === 'video') {
37548
+ if ((att.type === 'video' || att.data.type.split('/')[0] === 'video') && att.type !== 'file') {
37549
37549
  videoAttachment = true;
37550
37550
  if (!readyVideoAttachments[att.tid]) {
37551
37551
  setSendMessageIsActive(false);
package/index.modern.js CHANGED
@@ -10585,8 +10585,8 @@ var messageSlice = createSlice({
10585
10585
  var _action$payload8 = action.payload,
10586
10586
  uploaded = _action$payload8.uploaded,
10587
10587
  total = _action$payload8.total,
10588
- attachmentId = _action$payload8.attachmentId,
10589
- progress = _action$payload8.progress;
10588
+ attachmentId = _action$payload8.attachmentId;
10589
+ var progress = uploaded / total;
10590
10590
  var updateData = {
10591
10591
  uploaded: uploaded,
10592
10592
  total: total,
@@ -37524,7 +37524,7 @@ var SendMessageInput = function SendMessageInput(_ref3) {
37524
37524
  if (attachments.length) {
37525
37525
  var videoAttachment = false;
37526
37526
  attachments.forEach(function (att) {
37527
- if (att.type === 'video' || att.data.type.split('/')[0] === 'video') {
37527
+ if ((att.type === 'video' || att.data.type.split('/')[0] === 'video') && att.type !== 'file') {
37528
37528
  videoAttachment = true;
37529
37529
  if (!readyVideoAttachments[att.tid]) {
37530
37530
  setSendMessageIsActive(false);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sceyt-chat-react-uikit",
3
- "version": "1.7.1-beta.14",
3
+ "version": "1.7.1-beta.15",
4
4
  "description": "Interactive React UI Components for Sceyt Chat.",
5
5
  "author": "Sceyt",
6
6
  "license": "MIT",