sceyt-chat-react-uikit 1.7.9 → 1.8.0-beta.1
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 +20 -23
- package/index.modern.js +20 -23
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -17890,7 +17890,7 @@ function switchChannel(action) {
|
|
|
17890
17890
|
channelToSwitch = _extends({}, channelToSwitch, channelFromMap);
|
|
17891
17891
|
case 10:
|
|
17892
17892
|
if (!updateActiveChannel) {
|
|
17893
|
-
_context10.n =
|
|
17893
|
+
_context10.n = 14;
|
|
17894
17894
|
break;
|
|
17895
17895
|
}
|
|
17896
17896
|
currentActiveChannel = getChannelFromMap(getActiveChannelId());
|
|
@@ -17899,24 +17899,27 @@ function switchChannel(action) {
|
|
|
17899
17899
|
case 11:
|
|
17900
17900
|
removeAllMessages();
|
|
17901
17901
|
_context10.n = 12;
|
|
17902
|
-
return effects.
|
|
17902
|
+
return effects.put(setMessagesHasPrevAC(true));
|
|
17903
17903
|
case 12:
|
|
17904
|
+
_context10.n = 13;
|
|
17905
|
+
return effects.call(setActiveChannelId, channel && channel.id);
|
|
17906
|
+
case 13:
|
|
17904
17907
|
if (channel.isLinkedChannel) {
|
|
17905
17908
|
channelToSwitch.linkedFrom = currentActiveChannel;
|
|
17906
17909
|
}
|
|
17907
|
-
_context10.n =
|
|
17910
|
+
_context10.n = 14;
|
|
17908
17911
|
return effects.put(setActiveChannelAC(_extends({}, channelToSwitch)));
|
|
17909
|
-
case 13:
|
|
17910
|
-
_context10.n = 15;
|
|
17911
|
-
break;
|
|
17912
17912
|
case 14:
|
|
17913
|
-
_context10.
|
|
17913
|
+
_context10.n = 16;
|
|
17914
|
+
break;
|
|
17915
|
+
case 15:
|
|
17916
|
+
_context10.p = 15;
|
|
17914
17917
|
_t12 = _context10.v;
|
|
17915
17918
|
log.error('error in switch channel', _t12);
|
|
17916
|
-
case
|
|
17919
|
+
case 16:
|
|
17917
17920
|
return _context10.a(2);
|
|
17918
17921
|
}
|
|
17919
|
-
}, _marked10, null, [[0,
|
|
17922
|
+
}, _marked10, null, [[0, 15]]);
|
|
17920
17923
|
}
|
|
17921
17924
|
function notificationsTurnOff(action) {
|
|
17922
17925
|
var expireTime, activeChannelId, channel, updatedChannel, _t13;
|
|
@@ -21775,38 +21778,32 @@ function loadMoreMessages(action) {
|
|
|
21775
21778
|
_context12.n = 11;
|
|
21776
21779
|
return effects.put(addMessagesAC(JSON.parse(JSON.stringify(result.messages)), direction));
|
|
21777
21780
|
case 11:
|
|
21778
|
-
_context12.n =
|
|
21781
|
+
_context12.n = 14;
|
|
21779
21782
|
break;
|
|
21780
21783
|
case 12:
|
|
21781
21784
|
_context12.n = 13;
|
|
21782
21785
|
return effects.put(addMessagesAC([], direction));
|
|
21783
21786
|
case 13:
|
|
21784
21787
|
if (!(direction === MESSAGE_LOAD_DIRECTION.NEXT)) {
|
|
21785
|
-
_context12.n =
|
|
21788
|
+
_context12.n = 14;
|
|
21786
21789
|
break;
|
|
21787
21790
|
}
|
|
21788
21791
|
_context12.n = 14;
|
|
21789
21792
|
return effects.put(setMessagesHasNextAC(false));
|
|
21790
21793
|
case 14:
|
|
21791
|
-
_context12.n =
|
|
21792
|
-
|
|
21794
|
+
_context12.n = 15;
|
|
21795
|
+
return effects.put(setMessagesLoadingStateAC(LOADING_STATE.LOADED));
|
|
21793
21796
|
case 15:
|
|
21794
|
-
_context12.n = 16;
|
|
21795
|
-
return effects.put(setMessagesHasPrevAC(false));
|
|
21796
|
-
case 16:
|
|
21797
21797
|
_context12.n = 17;
|
|
21798
|
-
return effects.put(setMessagesLoadingStateAC(LOADING_STATE.LOADED));
|
|
21799
|
-
case 17:
|
|
21800
|
-
_context12.n = 19;
|
|
21801
21798
|
break;
|
|
21802
|
-
case
|
|
21803
|
-
_context12.p =
|
|
21799
|
+
case 16:
|
|
21800
|
+
_context12.p = 16;
|
|
21804
21801
|
_t20 = _context12.v;
|
|
21805
21802
|
log.error('error in load more messages', _t20);
|
|
21806
|
-
case
|
|
21803
|
+
case 17:
|
|
21807
21804
|
return _context12.a(2);
|
|
21808
21805
|
}
|
|
21809
|
-
}, _marked9$1, null, [[0,
|
|
21806
|
+
}, _marked9$1, null, [[0, 16]]);
|
|
21810
21807
|
}
|
|
21811
21808
|
function addReaction(action) {
|
|
21812
21809
|
var payload, channelId, messageId, key, score, reason, enforceUnique, user, channel, _yield$call, message, reaction, channelUpdateParam, _t21;
|
package/index.modern.js
CHANGED
|
@@ -17889,7 +17889,7 @@ function switchChannel(action) {
|
|
|
17889
17889
|
channelToSwitch = _extends({}, channelToSwitch, channelFromMap);
|
|
17890
17890
|
case 10:
|
|
17891
17891
|
if (!updateActiveChannel) {
|
|
17892
|
-
_context10.n =
|
|
17892
|
+
_context10.n = 14;
|
|
17893
17893
|
break;
|
|
17894
17894
|
}
|
|
17895
17895
|
currentActiveChannel = getChannelFromMap(getActiveChannelId());
|
|
@@ -17898,24 +17898,27 @@ function switchChannel(action) {
|
|
|
17898
17898
|
case 11:
|
|
17899
17899
|
removeAllMessages();
|
|
17900
17900
|
_context10.n = 12;
|
|
17901
|
-
return
|
|
17901
|
+
return put(setMessagesHasPrevAC(true));
|
|
17902
17902
|
case 12:
|
|
17903
|
+
_context10.n = 13;
|
|
17904
|
+
return call(setActiveChannelId, channel && channel.id);
|
|
17905
|
+
case 13:
|
|
17903
17906
|
if (channel.isLinkedChannel) {
|
|
17904
17907
|
channelToSwitch.linkedFrom = currentActiveChannel;
|
|
17905
17908
|
}
|
|
17906
|
-
_context10.n =
|
|
17909
|
+
_context10.n = 14;
|
|
17907
17910
|
return put(setActiveChannelAC(_extends({}, channelToSwitch)));
|
|
17908
|
-
case 13:
|
|
17909
|
-
_context10.n = 15;
|
|
17910
|
-
break;
|
|
17911
17911
|
case 14:
|
|
17912
|
-
_context10.
|
|
17912
|
+
_context10.n = 16;
|
|
17913
|
+
break;
|
|
17914
|
+
case 15:
|
|
17915
|
+
_context10.p = 15;
|
|
17913
17916
|
_t12 = _context10.v;
|
|
17914
17917
|
log.error('error in switch channel', _t12);
|
|
17915
|
-
case
|
|
17918
|
+
case 16:
|
|
17916
17919
|
return _context10.a(2);
|
|
17917
17920
|
}
|
|
17918
|
-
}, _marked10, null, [[0,
|
|
17921
|
+
}, _marked10, null, [[0, 15]]);
|
|
17919
17922
|
}
|
|
17920
17923
|
function notificationsTurnOff(action) {
|
|
17921
17924
|
var expireTime, activeChannelId, channel, updatedChannel, _t13;
|
|
@@ -21774,38 +21777,32 @@ function loadMoreMessages(action) {
|
|
|
21774
21777
|
_context12.n = 11;
|
|
21775
21778
|
return put(addMessagesAC(JSON.parse(JSON.stringify(result.messages)), direction));
|
|
21776
21779
|
case 11:
|
|
21777
|
-
_context12.n =
|
|
21780
|
+
_context12.n = 14;
|
|
21778
21781
|
break;
|
|
21779
21782
|
case 12:
|
|
21780
21783
|
_context12.n = 13;
|
|
21781
21784
|
return put(addMessagesAC([], direction));
|
|
21782
21785
|
case 13:
|
|
21783
21786
|
if (!(direction === MESSAGE_LOAD_DIRECTION.NEXT)) {
|
|
21784
|
-
_context12.n =
|
|
21787
|
+
_context12.n = 14;
|
|
21785
21788
|
break;
|
|
21786
21789
|
}
|
|
21787
21790
|
_context12.n = 14;
|
|
21788
21791
|
return put(setMessagesHasNextAC(false));
|
|
21789
21792
|
case 14:
|
|
21790
|
-
_context12.n =
|
|
21791
|
-
|
|
21793
|
+
_context12.n = 15;
|
|
21794
|
+
return put(setMessagesLoadingStateAC(LOADING_STATE.LOADED));
|
|
21792
21795
|
case 15:
|
|
21793
|
-
_context12.n = 16;
|
|
21794
|
-
return put(setMessagesHasPrevAC(false));
|
|
21795
|
-
case 16:
|
|
21796
21796
|
_context12.n = 17;
|
|
21797
|
-
return put(setMessagesLoadingStateAC(LOADING_STATE.LOADED));
|
|
21798
|
-
case 17:
|
|
21799
|
-
_context12.n = 19;
|
|
21800
21797
|
break;
|
|
21801
|
-
case
|
|
21802
|
-
_context12.p =
|
|
21798
|
+
case 16:
|
|
21799
|
+
_context12.p = 16;
|
|
21803
21800
|
_t20 = _context12.v;
|
|
21804
21801
|
log.error('error in load more messages', _t20);
|
|
21805
|
-
case
|
|
21802
|
+
case 17:
|
|
21806
21803
|
return _context12.a(2);
|
|
21807
21804
|
}
|
|
21808
|
-
}, _marked9$1, null, [[0,
|
|
21805
|
+
}, _marked9$1, null, [[0, 16]]);
|
|
21809
21806
|
}
|
|
21810
21807
|
function addReaction(action) {
|
|
21811
21808
|
var payload, channelId, messageId, key, score, reason, enforceUnique, user, channel, _yield$call, message, reaction, channelUpdateParam, _t21;
|