sceyt-chat-react-uikit 1.8.7-beta.15 → 1.8.7-beta.17

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
@@ -39789,9 +39789,7 @@ var AllVotesPopup = function AllVotesPopup(_ref) {
39789
39789
  isScrolling = _useState[0],
39790
39790
  setIsScrolling = _useState[1];
39791
39791
  React.useEffect(function () {
39792
- if (allVotes.length === 0 && totalVotes > 0 && !isLoading) {
39793
- dispatch(getPollVotesAC(messageId, poll.id, optionId, POLL_VOTES_LIMIT));
39794
- }
39792
+ dispatch(getPollVotesAC(messageId, poll.id, optionId, POLL_VOTES_LIMIT));
39795
39793
  }, []);
39796
39794
  React.useEffect(function () {
39797
39795
  if (allVotes.length > 0 && hasMore && !isLoading && allVotes.length < POLL_VOTES_LIMIT - 1) {
@@ -51543,9 +51541,6 @@ var SendMessageInput = function SendMessageInput(_ref3) {
51543
51541
  };
51544
51542
  var sendAttachmentsAsSeparateMessage = getSendAttachmentsAsSeparateMessages();
51545
51543
  dispatch(sendMessageAC(messageToSend, id, connectionStatus, connectionStatus, sendAttachmentsAsSeparateMessage));
51546
- setViewOnce(false);
51547
- setAttachments([]);
51548
- handleCloseReply();
51549
51544
  return Promise.resolve();
51550
51545
  } catch (e) {
51551
51546
  return Promise.reject(e);
@@ -51554,6 +51549,10 @@ var SendMessageInput = function SendMessageInput(_ref3) {
51554
51549
  reader.onerror = function (e) {
51555
51550
  log.info(' error on read file onError', e);
51556
51551
  };
51552
+ setViewOnce(false);
51553
+ setAttachments([]);
51554
+ attachmentsUpdate = [];
51555
+ handleCloseReply();
51557
51556
  reader.readAsBinaryString(recordedFile.file);
51558
51557
  }
51559
51558
  };
package/index.modern.js CHANGED
@@ -39788,9 +39788,7 @@ var AllVotesPopup = function AllVotesPopup(_ref) {
39788
39788
  isScrolling = _useState[0],
39789
39789
  setIsScrolling = _useState[1];
39790
39790
  useEffect(function () {
39791
- if (allVotes.length === 0 && totalVotes > 0 && !isLoading) {
39792
- dispatch(getPollVotesAC(messageId, poll.id, optionId, POLL_VOTES_LIMIT));
39793
- }
39791
+ dispatch(getPollVotesAC(messageId, poll.id, optionId, POLL_VOTES_LIMIT));
39794
39792
  }, []);
39795
39793
  useEffect(function () {
39796
39794
  if (allVotes.length > 0 && hasMore && !isLoading && allVotes.length < POLL_VOTES_LIMIT - 1) {
@@ -51542,9 +51540,6 @@ var SendMessageInput = function SendMessageInput(_ref3) {
51542
51540
  };
51543
51541
  var sendAttachmentsAsSeparateMessage = getSendAttachmentsAsSeparateMessages();
51544
51542
  dispatch(sendMessageAC(messageToSend, id, connectionStatus, connectionStatus, sendAttachmentsAsSeparateMessage));
51545
- setViewOnce(false);
51546
- setAttachments([]);
51547
- handleCloseReply();
51548
51543
  return Promise.resolve();
51549
51544
  } catch (e) {
51550
51545
  return Promise.reject(e);
@@ -51553,6 +51548,10 @@ var SendMessageInput = function SendMessageInput(_ref3) {
51553
51548
  reader.onerror = function (e) {
51554
51549
  log.info(' error on read file onError', e);
51555
51550
  };
51551
+ setViewOnce(false);
51552
+ setAttachments([]);
51553
+ attachmentsUpdate = [];
51554
+ handleCloseReply();
51556
51555
  reader.readAsBinaryString(recordedFile.file);
51557
51556
  }
51558
51557
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sceyt-chat-react-uikit",
3
- "version": "1.8.7-beta.15",
3
+ "version": "1.8.7-beta.17",
4
4
  "description": "Interactive React UI Components for Sceyt Chat.",
5
5
  "author": "Sceyt",
6
6
  "license": "MIT",