sceyt-chat-react-uikit 1.7.6-beta.16 → 1.7.6-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 +327 -329
- package/index.modern.js +327 -329
- package/package.json +1 -1
package/index.modern.js
CHANGED
|
@@ -14110,7 +14110,10 @@ function watchForEvents() {
|
|
|
14110
14110
|
SceytChatClient = getClient();
|
|
14111
14111
|
channelListener = new SceytChatClient.ChannelListener();
|
|
14112
14112
|
connectionListener = new SceytChatClient.ConnectionListener();
|
|
14113
|
-
usersTimeout = {
|
|
14113
|
+
usersTimeout = {
|
|
14114
|
+
recordingTimeout: {},
|
|
14115
|
+
typingTimeout: {}
|
|
14116
|
+
};
|
|
14114
14117
|
chan = eventChannel(function (emitter) {
|
|
14115
14118
|
var shouldSkip = function shouldSkip(channel) {
|
|
14116
14119
|
var channelTypesFilter = getChannelTypesFilter();
|
|
@@ -14516,7 +14519,7 @@ function watchForEvents() {
|
|
|
14516
14519
|
type = _yield$take.type;
|
|
14517
14520
|
args = _yield$take.args;
|
|
14518
14521
|
_t = type;
|
|
14519
|
-
_context.n = _t === CHANNEL_EVENT_TYPES.CREATE ? 2 : _t === CHANNEL_EVENT_TYPES.JOIN ? 7 : _t === CHANNEL_EVENT_TYPES.LEAVE ? 9 : _t === CHANNEL_EVENT_TYPES.BLOCK ? 22 : _t === CHANNEL_EVENT_TYPES.UNBLOCK ? 24 : _t === CHANNEL_EVENT_TYPES.KICK_MEMBERS ? 25 : _t === CHANNEL_EVENT_TYPES.ADD_MEMBERS ? 36 : _t === CHANNEL_EVENT_TYPES.UPDATE_CHANNEL ? 46 : _t === CHANNEL_EVENT_TYPES.MESSAGE ? 51 : _t === CHANNEL_EVENT_TYPES.MESSAGE_MARKERS_RECEIVED ?
|
|
14522
|
+
_context.n = _t === CHANNEL_EVENT_TYPES.CREATE ? 2 : _t === CHANNEL_EVENT_TYPES.JOIN ? 7 : _t === CHANNEL_EVENT_TYPES.LEAVE ? 9 : _t === CHANNEL_EVENT_TYPES.BLOCK ? 22 : _t === CHANNEL_EVENT_TYPES.UNBLOCK ? 24 : _t === CHANNEL_EVENT_TYPES.KICK_MEMBERS ? 25 : _t === CHANNEL_EVENT_TYPES.ADD_MEMBERS ? 36 : _t === CHANNEL_EVENT_TYPES.UPDATE_CHANNEL ? 46 : _t === CHANNEL_EVENT_TYPES.MESSAGE ? 51 : _t === CHANNEL_EVENT_TYPES.MESSAGE_MARKERS_RECEIVED ? 66 : _t === CHANNEL_EVENT_TYPES.DELETE ? 79 : _t === CHANNEL_EVENT_TYPES.DELETE_MESSAGE ? 81 : _t === CHANNEL_EVENT_TYPES.EDIT_MESSAGE ? 86 : _t === CHANNEL_EVENT_TYPES.REACTION_ADDED ? 91 : _t === CHANNEL_EVENT_TYPES.POLL_ADDED ? 99 : _t === CHANNEL_EVENT_TYPES.POLL_DELETED ? 109 : _t === CHANNEL_EVENT_TYPES.POLL_RETRACTED ? 117 : _t === CHANNEL_EVENT_TYPES.POLL_CLOSED ? 125 : _t === CHANNEL_EVENT_TYPES.REACTION_DELETED ? 129 : _t === CHANNEL_EVENT_TYPES.UNREAD_MESSAGES_INFO ? 134 : _t === CHANNEL_EVENT_TYPES.CLEAR_HISTORY ? 137 : _t === CHANNEL_EVENT_TYPES.MUTE ? 143 : _t === CHANNEL_EVENT_TYPES.UNMUTE ? 145 : _t === CHANNEL_EVENT_TYPES.PINED ? 147 : _t === CHANNEL_EVENT_TYPES.UNPINED ? 149 : _t === CHANNEL_EVENT_TYPES.HIDE ? 151 : _t === CHANNEL_EVENT_TYPES.UNHIDE ? 153 : _t === CHANNEL_EVENT_TYPES.CHANNEL_MARKED_AS_UNREAD ? 155 : _t === CHANNEL_EVENT_TYPES.CHANNEL_MARKED_AS_READ ? 158 : _t === CHANNEL_EVENT_TYPES.CHANGE_ROLE ? 161 : _t === CHANNEL_EVENT_TYPES.FROZEN ? 168 : _t === CHANNEL_EVENT_TYPES.UNFROZEN ? 169 : _t === CHANNEL_EVENT_TYPES.CHANNEL_EVENT ? 170 : _t === CONNECTION_EVENT_TYPES.CONNECTION_STATUS_CHANGED ? 179 : 182;
|
|
14520
14523
|
break;
|
|
14521
14524
|
case 2:
|
|
14522
14525
|
createdChannel = args.createdChannel;
|
|
@@ -14550,7 +14553,7 @@ function watchForEvents() {
|
|
|
14550
14553
|
addChannelToAllChannels(createdChannel);
|
|
14551
14554
|
}
|
|
14552
14555
|
case 6:
|
|
14553
|
-
return _context.a(3,
|
|
14556
|
+
return _context.a(3, 183);
|
|
14554
14557
|
case 7:
|
|
14555
14558
|
channel = args.channel;
|
|
14556
14559
|
log.info('channel JOIN ... . ', channel);
|
|
@@ -14561,7 +14564,7 @@ function watchForEvents() {
|
|
|
14561
14564
|
if (!_chan2) {
|
|
14562
14565
|
addChannelToAllChannels(channel);
|
|
14563
14566
|
}
|
|
14564
|
-
return _context.a(3,
|
|
14567
|
+
return _context.a(3, 183);
|
|
14565
14568
|
case 9:
|
|
14566
14569
|
_channel = args.channel, member = args.member;
|
|
14567
14570
|
log.info('channel LEAVE ... ', _channel, member);
|
|
@@ -14629,7 +14632,7 @@ function watchForEvents() {
|
|
|
14629
14632
|
mutedTill: _channel.mutedTill
|
|
14630
14633
|
});
|
|
14631
14634
|
case 21:
|
|
14632
|
-
return _context.a(3,
|
|
14635
|
+
return _context.a(3, 183);
|
|
14633
14636
|
case 22:
|
|
14634
14637
|
log.info('channel BLOCK ... ');
|
|
14635
14638
|
_channel2 = args.channel;
|
|
@@ -14641,10 +14644,10 @@ function watchForEvents() {
|
|
|
14641
14644
|
_context.n = 23;
|
|
14642
14645
|
return put(removeChannelAC(_channel2.id));
|
|
14643
14646
|
case 23:
|
|
14644
|
-
return _context.a(3,
|
|
14647
|
+
return _context.a(3, 183);
|
|
14645
14648
|
case 24:
|
|
14646
14649
|
log.info('channel UNBLOCK ... ');
|
|
14647
|
-
return _context.a(3,
|
|
14650
|
+
return _context.a(3, 183);
|
|
14648
14651
|
case 25:
|
|
14649
14652
|
_channel3 = args.channel, removedMembers = args.removedMembers;
|
|
14650
14653
|
log.info('channel KICK_MEMBERS ... ', removedMembers);
|
|
@@ -14714,7 +14717,7 @@ function watchForEvents() {
|
|
|
14714
14717
|
muted: _channel3.muted,
|
|
14715
14718
|
mutedTill: _channel3.mutedTill
|
|
14716
14719
|
});
|
|
14717
|
-
return _context.a(3,
|
|
14720
|
+
return _context.a(3, 183);
|
|
14718
14721
|
case 36:
|
|
14719
14722
|
_channel4 = args.channel, addedMembers = args.addedMembers;
|
|
14720
14723
|
log.info('channel ADD_MEMBERS ... ', addedMembers);
|
|
@@ -14769,7 +14772,7 @@ function watchForEvents() {
|
|
|
14769
14772
|
muted: _channel4.muted,
|
|
14770
14773
|
mutedTill: _channel4.mutedTill
|
|
14771
14774
|
});
|
|
14772
|
-
return _context.a(3,
|
|
14775
|
+
return _context.a(3, 183);
|
|
14773
14776
|
case 46:
|
|
14774
14777
|
log.info('channel UPDATE_CHANNEL ... ');
|
|
14775
14778
|
updatedChannel = args.updatedChannel;
|
|
@@ -14816,65 +14819,60 @@ function watchForEvents() {
|
|
|
14816
14819
|
mutedTill: mutedTill,
|
|
14817
14820
|
metadata: isJSON(metadata) ? JSON.parse(metadata) : metadata
|
|
14818
14821
|
});
|
|
14819
|
-
return _context.a(3,
|
|
14822
|
+
return _context.a(3, 183);
|
|
14820
14823
|
case 51:
|
|
14821
14824
|
_channel5 = args.channel, message = args.message;
|
|
14822
14825
|
log.info('channel MESSAGE ... id : ', message.id, ', channel.id: ', _channel5.id);
|
|
14823
14826
|
messageToHandle = handleNewMessages ? handleNewMessages(message, _channel5) : message;
|
|
14824
14827
|
_channelFilterTypes = getChannelTypesFilter();
|
|
14825
14828
|
if (!(messageToHandle && _channel5 && (_channelFilterTypes !== null && _channelFilterTypes !== void 0 && _channelFilterTypes.length ? _channelFilterTypes.includes(_channel5.type) : true))) {
|
|
14826
|
-
_context.n =
|
|
14829
|
+
_context.n = 65;
|
|
14827
14830
|
break;
|
|
14828
14831
|
}
|
|
14829
14832
|
_channel5.metadata = isJSON(_channel5.metadata) ? JSON.parse(_channel5.metadata) : _channel5.metadata;
|
|
14830
|
-
|
|
14831
|
-
return call(getActiveChannelId);
|
|
14832
|
-
case 52:
|
|
14833
|
-
_activeChannelId5 = _context.v;
|
|
14833
|
+
_activeChannelId5 = getActiveChannelId();
|
|
14834
14834
|
_channelExists6 = checkChannelExists(_channel5.id);
|
|
14835
14835
|
channelForAdd = JSON.parse(JSON.stringify(_channel5));
|
|
14836
|
-
_context.n =
|
|
14836
|
+
_context.n = 52;
|
|
14837
14837
|
return put(addChannelAC(channelForAdd));
|
|
14838
|
-
case
|
|
14838
|
+
case 52:
|
|
14839
14839
|
if (_channelExists6) {
|
|
14840
|
-
_context.n =
|
|
14840
|
+
_context.n = 53;
|
|
14841
14841
|
break;
|
|
14842
14842
|
}
|
|
14843
|
+
setChannelInMap(_channel5);
|
|
14843
14844
|
_context.n = 54;
|
|
14844
|
-
return call(setChannelInMap, _channel5);
|
|
14845
|
-
case 54:
|
|
14846
|
-
_context.n = 56;
|
|
14847
14845
|
break;
|
|
14848
|
-
case
|
|
14846
|
+
case 53:
|
|
14849
14847
|
if (message.repliedInThread) {
|
|
14850
|
-
_context.n =
|
|
14848
|
+
_context.n = 54;
|
|
14851
14849
|
break;
|
|
14852
14850
|
}
|
|
14853
|
-
_context.n =
|
|
14851
|
+
_context.n = 54;
|
|
14854
14852
|
return put(updateChannelLastMessageAC(message, channelForAdd));
|
|
14855
|
-
case
|
|
14853
|
+
case 54:
|
|
14856
14854
|
if (!(_channel5.id === _activeChannelId5)) {
|
|
14857
|
-
_context.n =
|
|
14855
|
+
_context.n = 56;
|
|
14858
14856
|
break;
|
|
14859
14857
|
}
|
|
14860
14858
|
if (getHasNextCached()) {
|
|
14861
|
-
_context.n =
|
|
14859
|
+
_context.n = 55;
|
|
14862
14860
|
break;
|
|
14863
14861
|
}
|
|
14864
|
-
_context.n =
|
|
14862
|
+
_context.n = 55;
|
|
14865
14863
|
return put(addMessageAC(message));
|
|
14866
|
-
case
|
|
14864
|
+
case 55:
|
|
14867
14865
|
addAllMessages([message], MESSAGE_LOAD_DIRECTION.NEXT);
|
|
14868
14866
|
hasNextMessage = store.getState().MessageReducer.messagesHasNext;
|
|
14869
14867
|
if (!(!getHasNextCached() && !hasNextMessage)) {
|
|
14870
|
-
_context.n =
|
|
14868
|
+
_context.n = 56;
|
|
14871
14869
|
break;
|
|
14872
14870
|
}
|
|
14873
|
-
_context.n =
|
|
14871
|
+
_context.n = 56;
|
|
14874
14872
|
return put(scrollToNewMessageAC(true, false, true));
|
|
14875
|
-
case
|
|
14873
|
+
case 56:
|
|
14876
14874
|
addMessageToMap(_channel5.id, message);
|
|
14877
|
-
_context.n =
|
|
14875
|
+
_context.n = 57;
|
|
14878
14876
|
return put(updateChannelDataAC(_channel5.id, {
|
|
14879
14877
|
messageCount: channelForAdd.messageCount,
|
|
14880
14878
|
unread: channelForAdd.unread,
|
|
@@ -14890,9 +14888,9 @@ function watchForEvents() {
|
|
|
14890
14888
|
userMessageReactions: [],
|
|
14891
14889
|
lastReactedMessage: null
|
|
14892
14890
|
}));
|
|
14893
|
-
case
|
|
14891
|
+
case 57:
|
|
14894
14892
|
_groupName4 = getChannelGroupName(_channel5);
|
|
14895
|
-
_context.n =
|
|
14893
|
+
_context.n = 58;
|
|
14896
14894
|
return put(updateSearchedChannelDataAC(_channel5.id, {
|
|
14897
14895
|
messageCount: channelForAdd.messageCount,
|
|
14898
14896
|
unread: channelForAdd.unread,
|
|
@@ -14908,27 +14906,27 @@ function watchForEvents() {
|
|
|
14908
14906
|
userMessageReactions: [],
|
|
14909
14907
|
lastReactedMessage: null
|
|
14910
14908
|
}, _groupName4));
|
|
14911
|
-
case
|
|
14909
|
+
case 58:
|
|
14912
14910
|
showNotifications = getShowNotifications();
|
|
14913
14911
|
if (!(showNotifications && !message.silent && message.user.id !== SceytChatClient.user.id && !_channel5.muted)) {
|
|
14914
|
-
_context.n =
|
|
14912
|
+
_context.n = 61;
|
|
14915
14913
|
break;
|
|
14916
14914
|
}
|
|
14917
14915
|
if (!(Notification.permission === 'granted')) {
|
|
14918
|
-
_context.n =
|
|
14916
|
+
_context.n = 61;
|
|
14919
14917
|
break;
|
|
14920
14918
|
}
|
|
14921
|
-
_context.n =
|
|
14919
|
+
_context.n = 59;
|
|
14922
14920
|
return select(browserTabIsActiveSelector);
|
|
14923
|
-
case
|
|
14921
|
+
case 59:
|
|
14924
14922
|
tabIsActive = _context.v;
|
|
14925
14923
|
if (!(document.visibilityState !== 'visible' || !tabIsActive || _channel5.id !== _activeChannelId5)) {
|
|
14926
|
-
_context.n =
|
|
14924
|
+
_context.n = 61;
|
|
14927
14925
|
break;
|
|
14928
14926
|
}
|
|
14929
|
-
_context.n =
|
|
14927
|
+
_context.n = 60;
|
|
14930
14928
|
return select(contactsMapSelector);
|
|
14931
|
-
case
|
|
14929
|
+
case 60:
|
|
14932
14930
|
contactsMap = _context.v;
|
|
14933
14931
|
_getFromContacts = getShowOnlyContactUsers();
|
|
14934
14932
|
state = store.getState();
|
|
@@ -14948,20 +14946,20 @@ function watchForEvents() {
|
|
|
14948
14946
|
setNotification(messageBody, message.user, _channel5, undefined, message.attachments && message.attachments.length ? message.attachments.find(function (att) {
|
|
14949
14947
|
return att.type !== attachmentTypes.link;
|
|
14950
14948
|
}) : undefined);
|
|
14951
|
-
case
|
|
14949
|
+
case 61:
|
|
14952
14950
|
if (!(message.repliedInThread && message.parentMessage.id)) {
|
|
14953
|
-
_context.n =
|
|
14951
|
+
_context.n = 63;
|
|
14954
14952
|
break;
|
|
14955
14953
|
}
|
|
14956
|
-
_context.n =
|
|
14954
|
+
_context.n = 62;
|
|
14957
14955
|
return put(markMessagesAsDeliveredAC(message.parentMessage.id, [message.id]));
|
|
14958
|
-
case
|
|
14959
|
-
_context.n =
|
|
14956
|
+
case 62:
|
|
14957
|
+
_context.n = 64;
|
|
14960
14958
|
break;
|
|
14961
|
-
case
|
|
14962
|
-
_context.n =
|
|
14959
|
+
case 63:
|
|
14960
|
+
_context.n = 64;
|
|
14963
14961
|
return put(markMessagesAsDeliveredAC(_channel5.id, [message.id]));
|
|
14964
|
-
case
|
|
14962
|
+
case 64:
|
|
14965
14963
|
updateChannelOnAllChannels(_channel5.id, {
|
|
14966
14964
|
messageCount: channelForAdd.messageCount,
|
|
14967
14965
|
unread: channelForAdd.unread,
|
|
@@ -14978,50 +14976,50 @@ function watchForEvents() {
|
|
|
14978
14976
|
userMessageReactions: _channel5.userMessageReactions
|
|
14979
14977
|
});
|
|
14980
14978
|
updateChannelLastMessageOnAllChannels(_channel5.id, _channel5.lastMessage);
|
|
14981
|
-
case
|
|
14982
|
-
return _context.a(3,
|
|
14983
|
-
case
|
|
14979
|
+
case 65:
|
|
14980
|
+
return _context.a(3, 183);
|
|
14981
|
+
case 66:
|
|
14984
14982
|
channelId = args.channelId, markerList = args.markerList;
|
|
14985
|
-
_context.n =
|
|
14983
|
+
_context.n = 67;
|
|
14986
14984
|
return call(getChannelFromMap, channelId);
|
|
14987
|
-
case
|
|
14985
|
+
case 67:
|
|
14988
14986
|
_channel6 = _context.v;
|
|
14989
14987
|
log.info('channel MESSAGE_MARKERS_RECEIVED ... channel: ', _channel6, 'markers list: ', markerList);
|
|
14990
14988
|
if (!_channel6) {
|
|
14991
|
-
_context.n =
|
|
14989
|
+
_context.n = 78;
|
|
14992
14990
|
break;
|
|
14993
14991
|
}
|
|
14994
|
-
_context.n =
|
|
14992
|
+
_context.n = 68;
|
|
14995
14993
|
return call(getActiveChannelId);
|
|
14996
|
-
case
|
|
14994
|
+
case 68:
|
|
14997
14995
|
_activeChannelId6 = _context.v;
|
|
14998
14996
|
updateLastMessage = false;
|
|
14999
14997
|
markersMap = {};
|
|
15000
14998
|
activeChannelMessages = getMessagesFromMap(_activeChannelId6);
|
|
15001
14999
|
_iterator = _createForOfIteratorHelperLoose(markerList.messageIds);
|
|
15002
|
-
case
|
|
15000
|
+
case 69:
|
|
15003
15001
|
if ((_step = _iterator()).done) {
|
|
15004
|
-
_context.n =
|
|
15002
|
+
_context.n = 74;
|
|
15005
15003
|
break;
|
|
15006
15004
|
}
|
|
15007
15005
|
messageId = _step.value;
|
|
15008
15006
|
if (!(activeChannelMessages !== null && activeChannelMessages !== void 0 && activeChannelMessages[messageId])) {
|
|
15009
|
-
_context.n =
|
|
15007
|
+
_context.n = 71;
|
|
15010
15008
|
break;
|
|
15011
15009
|
}
|
|
15012
|
-
_context.n =
|
|
15010
|
+
_context.n = 70;
|
|
15013
15011
|
return put(removePendingMessageAC(channelId, messageId));
|
|
15014
|
-
case
|
|
15015
|
-
_context.n =
|
|
15012
|
+
case 70:
|
|
15013
|
+
_context.n = 72;
|
|
15016
15014
|
break;
|
|
15017
|
-
case
|
|
15015
|
+
case 71:
|
|
15018
15016
|
isPendingMessage = getMessageFromPendingMessagesMap(_activeChannelId6, messageId);
|
|
15019
15017
|
if (isPendingMessage) {
|
|
15020
15018
|
updatePendingMessageOnMap(_activeChannelId6, messageId, {
|
|
15021
15019
|
deliveryStatus: markerList.name
|
|
15022
15020
|
});
|
|
15023
15021
|
}
|
|
15024
|
-
case
|
|
15022
|
+
case 72:
|
|
15025
15023
|
markersMap[messageId] = true;
|
|
15026
15024
|
if (_channel6) {
|
|
15027
15025
|
if (_channel6.lastMessage && messageId === _channel6.lastMessage.id) {
|
|
@@ -15032,102 +15030,102 @@ function watchForEvents() {
|
|
|
15032
15030
|
id: messageId,
|
|
15033
15031
|
deliveryStatus: markerList.name
|
|
15034
15032
|
});
|
|
15035
|
-
case
|
|
15036
|
-
_context.n =
|
|
15033
|
+
case 73:
|
|
15034
|
+
_context.n = 69;
|
|
15037
15035
|
break;
|
|
15038
|
-
case
|
|
15036
|
+
case 74:
|
|
15039
15037
|
if (!updateLastMessage) {
|
|
15040
|
-
_context.n =
|
|
15038
|
+
_context.n = 75;
|
|
15041
15039
|
break;
|
|
15042
15040
|
}
|
|
15043
15041
|
lastMessage = _extends({}, _channel6.lastMessage, updateMessageDeliveryStatusAndMarkers(_channel6.lastMessage, markerList.name));
|
|
15044
15042
|
updateChannelLastMessageOnAllChannels(_channel6.id, lastMessage);
|
|
15045
|
-
_context.n =
|
|
15043
|
+
_context.n = 75;
|
|
15046
15044
|
return put(updateChannelLastMessageStatusAC(lastMessage, _channel6));
|
|
15047
|
-
case
|
|
15045
|
+
case 75:
|
|
15048
15046
|
if (!(_activeChannelId6 === channelId)) {
|
|
15049
|
-
_context.n =
|
|
15047
|
+
_context.n = 77;
|
|
15050
15048
|
break;
|
|
15051
15049
|
}
|
|
15052
|
-
_context.n =
|
|
15050
|
+
_context.n = 76;
|
|
15053
15051
|
return put(updateMessagesStatusAC(markerList.name, markersMap));
|
|
15054
|
-
case
|
|
15052
|
+
case 76:
|
|
15055
15053
|
updateMarkersOnAllMessages(markersMap, markerList.name);
|
|
15056
|
-
case
|
|
15054
|
+
case 77:
|
|
15057
15055
|
updateMessageStatusOnMap(_channel6.id, {
|
|
15058
15056
|
name: markerList.name,
|
|
15059
15057
|
markersMap: markersMap
|
|
15060
15058
|
});
|
|
15061
15059
|
updateMessageStatusOnAllMessages(markerList.name, markersMap);
|
|
15062
|
-
_context.n =
|
|
15060
|
+
_context.n = 78;
|
|
15063
15061
|
return put(updateMessagesMarkersAC(channelId, markerList.name, markerList));
|
|
15064
|
-
case
|
|
15065
|
-
return _context.a(3,
|
|
15066
|
-
case
|
|
15062
|
+
case 78:
|
|
15063
|
+
return _context.a(3, 183);
|
|
15064
|
+
case 79:
|
|
15067
15065
|
_channelId = args.channelId;
|
|
15068
15066
|
log.info('channel DELETE ... ');
|
|
15069
15067
|
_channel7 = getChannelFromMap(_channelId);
|
|
15070
|
-
_context.n =
|
|
15068
|
+
_context.n = 80;
|
|
15071
15069
|
return put(setChannelToRemoveAC(_channel7));
|
|
15072
|
-
case
|
|
15070
|
+
case 80:
|
|
15073
15071
|
deleteChannelFromAllChannels(_channelId);
|
|
15074
|
-
return _context.a(3,
|
|
15075
|
-
case
|
|
15072
|
+
return _context.a(3, 183);
|
|
15073
|
+
case 81:
|
|
15076
15074
|
_channel8 = args.channel, deletedMessage = args.deletedMessage;
|
|
15077
|
-
_context.n =
|
|
15075
|
+
_context.n = 82;
|
|
15078
15076
|
return call(getActiveChannelId);
|
|
15079
|
-
case
|
|
15077
|
+
case 82:
|
|
15080
15078
|
_activeChannelId7 = _context.v;
|
|
15081
15079
|
log.info('channel DELETE_MESSAGE ... ');
|
|
15082
15080
|
_channelExists7 = checkChannelExists(_channel8.id);
|
|
15083
15081
|
if (!(_channel8.id === _activeChannelId7)) {
|
|
15084
|
-
_context.n =
|
|
15082
|
+
_context.n = 83;
|
|
15085
15083
|
break;
|
|
15086
15084
|
}
|
|
15087
15085
|
updateMessageOnAllMessages(deletedMessage.id, deletedMessage);
|
|
15088
|
-
_context.n =
|
|
15086
|
+
_context.n = 83;
|
|
15089
15087
|
return put(updateMessageAC(deletedMessage.id, deletedMessage));
|
|
15090
|
-
case
|
|
15088
|
+
case 83:
|
|
15091
15089
|
updateMessageOnMap(_channel8.id, {
|
|
15092
15090
|
messageId: deletedMessage.id,
|
|
15093
15091
|
params: deletedMessage
|
|
15094
15092
|
});
|
|
15095
15093
|
if (!_channelExists7) {
|
|
15096
|
-
_context.n =
|
|
15094
|
+
_context.n = 85;
|
|
15097
15095
|
break;
|
|
15098
15096
|
}
|
|
15099
|
-
_context.n =
|
|
15097
|
+
_context.n = 84;
|
|
15100
15098
|
return put(updateChannelDataAC(_channel8.id, {
|
|
15101
15099
|
newMessageCount: _channel8.newMessageCount,
|
|
15102
15100
|
muted: _channel8.muted,
|
|
15103
15101
|
mutedTill: _channel8.mutedTill
|
|
15104
15102
|
}));
|
|
15105
|
-
case
|
|
15103
|
+
case 84:
|
|
15106
15104
|
if (!(_channel8.lastMessage.id === deletedMessage.id)) {
|
|
15107
|
-
_context.n =
|
|
15105
|
+
_context.n = 85;
|
|
15108
15106
|
break;
|
|
15109
15107
|
}
|
|
15110
|
-
_context.n =
|
|
15108
|
+
_context.n = 85;
|
|
15111
15109
|
return put(updateChannelLastMessageAC(deletedMessage, _channel8));
|
|
15112
|
-
case
|
|
15110
|
+
case 85:
|
|
15113
15111
|
updateChannelOnAllChannels(_channel8.id, {
|
|
15114
15112
|
newMessageCount: _channel8.newMessageCount,
|
|
15115
15113
|
muted: _channel8.muted,
|
|
15116
15114
|
mutedTill: _channel8.mutedTill
|
|
15117
15115
|
}, deletedMessage);
|
|
15118
|
-
return _context.a(3,
|
|
15119
|
-
case
|
|
15116
|
+
return _context.a(3, 183);
|
|
15117
|
+
case 86:
|
|
15120
15118
|
_channel9 = args.channel, _message = args.message;
|
|
15121
|
-
_context.n =
|
|
15119
|
+
_context.n = 87;
|
|
15122
15120
|
return call(getActiveChannelId);
|
|
15123
|
-
case
|
|
15121
|
+
case 87:
|
|
15124
15122
|
_activeChannelId8 = _context.v;
|
|
15125
15123
|
_channelExists8 = checkChannelExists(_channel9.id);
|
|
15126
15124
|
if (!(_channel9.id === _activeChannelId8)) {
|
|
15127
|
-
_context.n =
|
|
15125
|
+
_context.n = 89;
|
|
15128
15126
|
break;
|
|
15129
15127
|
}
|
|
15130
|
-
_context.n =
|
|
15128
|
+
_context.n = 88;
|
|
15131
15129
|
return put(updateMessageAC(_message.id, {
|
|
15132
15130
|
body: _message.body,
|
|
15133
15131
|
state: _message.state,
|
|
@@ -15136,7 +15134,7 @@ function watchForEvents() {
|
|
|
15136
15134
|
mentionedUsers: _message.mentionedUsers,
|
|
15137
15135
|
updatedAt: _message.updatedAt
|
|
15138
15136
|
}));
|
|
15139
|
-
case
|
|
15137
|
+
case 88:
|
|
15140
15138
|
updateMessageOnAllMessages(_message.id, {
|
|
15141
15139
|
body: _message.body,
|
|
15142
15140
|
state: _message.state,
|
|
@@ -15145,18 +15143,18 @@ function watchForEvents() {
|
|
|
15145
15143
|
mentionedUsers: _message.mentionedUsers,
|
|
15146
15144
|
updatedAt: _message.updatedAt
|
|
15147
15145
|
});
|
|
15148
|
-
case
|
|
15146
|
+
case 89:
|
|
15149
15147
|
if (!_channelExists8) {
|
|
15150
|
-
_context.n =
|
|
15148
|
+
_context.n = 90;
|
|
15151
15149
|
break;
|
|
15152
15150
|
}
|
|
15153
15151
|
if (!(_channel9.lastMessage.id === _message.id)) {
|
|
15154
|
-
_context.n =
|
|
15152
|
+
_context.n = 90;
|
|
15155
15153
|
break;
|
|
15156
15154
|
}
|
|
15157
|
-
_context.n =
|
|
15155
|
+
_context.n = 90;
|
|
15158
15156
|
return put(updateChannelLastMessageAC(_message, _channel9));
|
|
15159
|
-
case
|
|
15157
|
+
case 90:
|
|
15160
15158
|
if (checkChannelExistsOnMessagesMap(_channel9.id)) {
|
|
15161
15159
|
updateMessageOnMap(_channel9.id, {
|
|
15162
15160
|
messageId: _message.id,
|
|
@@ -15164,38 +15162,38 @@ function watchForEvents() {
|
|
|
15164
15162
|
});
|
|
15165
15163
|
}
|
|
15166
15164
|
updateChannelOnAllChannels(_channel9.id, {}, _message);
|
|
15167
|
-
return _context.a(3,
|
|
15168
|
-
case
|
|
15165
|
+
return _context.a(3, 183);
|
|
15166
|
+
case 91:
|
|
15169
15167
|
_channel0 = args.channel, user = args.user, _message2 = args.message, reaction = args.reaction;
|
|
15170
15168
|
isSelf = user.id === SceytChatClient.user.id;
|
|
15171
|
-
_context.n =
|
|
15169
|
+
_context.n = 92;
|
|
15172
15170
|
return call(getActiveChannelId);
|
|
15173
|
-
case
|
|
15171
|
+
case 92:
|
|
15174
15172
|
_activeChannelId9 = _context.v;
|
|
15175
15173
|
if (!(_channel0.id === _activeChannelId9)) {
|
|
15176
|
-
_context.n =
|
|
15174
|
+
_context.n = 94;
|
|
15177
15175
|
break;
|
|
15178
15176
|
}
|
|
15179
|
-
_context.n =
|
|
15177
|
+
_context.n = 93;
|
|
15180
15178
|
return put(addReactionToMessageAC(_message2, reaction, isSelf));
|
|
15181
|
-
case
|
|
15179
|
+
case 93:
|
|
15182
15180
|
addReactionOnAllMessages(_message2, reaction, true);
|
|
15183
|
-
case
|
|
15181
|
+
case 94:
|
|
15184
15182
|
if (!(_message2.user.id === SceytChatClient.user.id)) {
|
|
15185
|
-
_context.n =
|
|
15183
|
+
_context.n = 98;
|
|
15186
15184
|
break;
|
|
15187
15185
|
}
|
|
15188
15186
|
if (!(!isSelf && Notification.permission === 'granted')) {
|
|
15189
|
-
_context.n =
|
|
15187
|
+
_context.n = 96;
|
|
15190
15188
|
break;
|
|
15191
15189
|
}
|
|
15192
15190
|
if (!(document.visibilityState !== 'visible' || _channel0.id !== _activeChannelId9)) {
|
|
15193
|
-
_context.n =
|
|
15191
|
+
_context.n = 96;
|
|
15194
15192
|
break;
|
|
15195
15193
|
}
|
|
15196
|
-
_context.n =
|
|
15194
|
+
_context.n = 95;
|
|
15197
15195
|
return select(contactsMapSelector);
|
|
15198
|
-
case
|
|
15196
|
+
case 95:
|
|
15199
15197
|
_contactsMap = _context.v;
|
|
15200
15198
|
_getFromContacts2 = getShowOnlyContactUsers();
|
|
15201
15199
|
_state = store.getState();
|
|
@@ -15215,9 +15213,9 @@ function watchForEvents() {
|
|
|
15215
15213
|
setNotification(_messageBody, reaction.user, _channel0, reaction.key, _message2.attachments && _message2.attachments.length ? _message2.attachments.find(function (att) {
|
|
15216
15214
|
return att.type !== attachmentTypes.link;
|
|
15217
15215
|
}) : undefined);
|
|
15218
|
-
case
|
|
15216
|
+
case 96:
|
|
15219
15217
|
if (!(_channel0.newReactions && _channel0.newReactions.length)) {
|
|
15220
|
-
_context.n =
|
|
15218
|
+
_context.n = 97;
|
|
15221
15219
|
break;
|
|
15222
15220
|
}
|
|
15223
15221
|
channelUpdateParams = {
|
|
@@ -15227,9 +15225,9 @@ function watchForEvents() {
|
|
|
15227
15225
|
muted: _channel0.muted,
|
|
15228
15226
|
mutedTill: _channel0.mutedTill
|
|
15229
15227
|
};
|
|
15230
|
-
_context.n =
|
|
15228
|
+
_context.n = 97;
|
|
15231
15229
|
return put(updateChannelDataAC(_channel0.id, channelUpdateParams));
|
|
15232
|
-
case
|
|
15230
|
+
case 97:
|
|
15233
15231
|
updateChannelOnAllChannels(_channel0.id, {
|
|
15234
15232
|
userMessageReactions: _channel0.newReactions,
|
|
15235
15233
|
lastReactedMessage: _message2,
|
|
@@ -15237,17 +15235,17 @@ function watchForEvents() {
|
|
|
15237
15235
|
muted: _channel0.muted,
|
|
15238
15236
|
mutedTill: _channel0.mutedTill
|
|
15239
15237
|
});
|
|
15240
|
-
case
|
|
15238
|
+
case 98:
|
|
15241
15239
|
if (checkChannelExistsOnMessagesMap(_channel0.id)) {
|
|
15242
15240
|
addReactionToMessageOnMap(_channel0.id, _message2, reaction, true);
|
|
15243
15241
|
}
|
|
15244
|
-
return _context.a(3,
|
|
15245
|
-
case
|
|
15242
|
+
return _context.a(3, 183);
|
|
15243
|
+
case 99:
|
|
15246
15244
|
_channel1 = args.channel, pollDetails = args.pollDetails, _messageId = args.messageId;
|
|
15247
15245
|
pollDetailsData = pollDetails;
|
|
15248
|
-
_context.n =
|
|
15246
|
+
_context.n = 100;
|
|
15249
15247
|
return call(getActiveChannelId);
|
|
15250
|
-
case
|
|
15248
|
+
case 100:
|
|
15251
15249
|
_activeChannelId0 = _context.v;
|
|
15252
15250
|
addedVotes = (pollDetailsData === null || pollDetailsData === void 0 ? void 0 : (_pollDetailsData$chan = pollDetailsData.changedVotes) === null || _pollDetailsData$chan === void 0 ? void 0 : _pollDetailsData$chan.addedVotes) || [];
|
|
15253
15251
|
deletedVotes = (pollDetailsData === null || pollDetailsData === void 0 ? void 0 : (_pollDetailsData$chan2 = pollDetailsData.changedVotes) === null || _pollDetailsData$chan2 === void 0 ? void 0 : _pollDetailsData$chan2.removedVotes) || [];
|
|
@@ -15269,39 +15267,39 @@ function watchForEvents() {
|
|
|
15269
15267
|
});
|
|
15270
15268
|
}
|
|
15271
15269
|
_i = 0, _objs = objs;
|
|
15272
|
-
case
|
|
15270
|
+
case 101:
|
|
15273
15271
|
if (!(_i < _objs.length)) {
|
|
15274
|
-
_context.n =
|
|
15272
|
+
_context.n = 105;
|
|
15275
15273
|
break;
|
|
15276
15274
|
}
|
|
15277
15275
|
obj = _objs[_i];
|
|
15278
15276
|
if (!(pollDetailsData !== null && pollDetailsData !== void 0 && pollDetailsData.id && obj.vote)) {
|
|
15279
|
-
_context.n =
|
|
15277
|
+
_context.n = 104;
|
|
15280
15278
|
break;
|
|
15281
15279
|
}
|
|
15282
15280
|
key = pollDetailsData.id + "_" + obj.vote.optionId;
|
|
15283
15281
|
hasNext = ((_store$getState$Messa = store.getState().MessageReducer.pollVotesHasMore) === null || _store$getState$Messa === void 0 ? void 0 : _store$getState$Messa[key]) || false;
|
|
15284
15282
|
if (!(obj.type === 'addOwn')) {
|
|
15285
|
-
_context.n =
|
|
15283
|
+
_context.n = 103;
|
|
15286
15284
|
break;
|
|
15287
15285
|
}
|
|
15288
|
-
_context.n =
|
|
15286
|
+
_context.n = 102;
|
|
15289
15287
|
return put(addPollVotesToListAC(pollDetailsData.id, obj.vote.optionId, [obj.vote], hasNext, undefined));
|
|
15290
|
-
case
|
|
15291
|
-
_context.n =
|
|
15288
|
+
case 102:
|
|
15289
|
+
_context.n = 104;
|
|
15292
15290
|
break;
|
|
15293
|
-
case
|
|
15294
|
-
_context.n =
|
|
15291
|
+
case 103:
|
|
15292
|
+
_context.n = 104;
|
|
15295
15293
|
return put(deletePollVotesFromListAC(pollDetailsData.id, obj.vote.optionId, [obj.vote], _messageId));
|
|
15296
|
-
case
|
|
15294
|
+
case 104:
|
|
15297
15295
|
_i++;
|
|
15298
|
-
_context.n =
|
|
15296
|
+
_context.n = 101;
|
|
15299
15297
|
break;
|
|
15300
|
-
case
|
|
15298
|
+
case 105:
|
|
15301
15299
|
_i2 = 0, _objs2 = objs;
|
|
15302
|
-
case
|
|
15300
|
+
case 106:
|
|
15303
15301
|
if (!(_i2 < _objs2.length)) {
|
|
15304
|
-
_context.n =
|
|
15302
|
+
_context.n = 108;
|
|
15305
15303
|
break;
|
|
15306
15304
|
}
|
|
15307
15305
|
_obj = _objs2[_i2];
|
|
@@ -15314,24 +15312,24 @@ function watchForEvents() {
|
|
|
15314
15312
|
incrementVotesPerOptionCount: _obj.incrementVotesPerOptionCount
|
|
15315
15313
|
});
|
|
15316
15314
|
if (!(_channel1.id === _activeChannelId0)) {
|
|
15317
|
-
_context.n =
|
|
15315
|
+
_context.n = 107;
|
|
15318
15316
|
break;
|
|
15319
15317
|
}
|
|
15320
15318
|
updateMessageOnAllMessages(_messageId, {}, _obj);
|
|
15321
|
-
_context.n =
|
|
15319
|
+
_context.n = 107;
|
|
15322
15320
|
return put(updateMessageAC(_messageId, {}, undefined, _obj));
|
|
15323
|
-
case
|
|
15321
|
+
case 107:
|
|
15324
15322
|
_i2++;
|
|
15325
|
-
_context.n =
|
|
15323
|
+
_context.n = 106;
|
|
15326
15324
|
break;
|
|
15327
|
-
case
|
|
15328
|
-
return _context.a(3,
|
|
15329
|
-
case
|
|
15325
|
+
case 108:
|
|
15326
|
+
return _context.a(3, 183);
|
|
15327
|
+
case 109:
|
|
15330
15328
|
_channel10 = args.channel, _pollDetails = args.pollDetails, _messageId2 = args.messageId;
|
|
15331
15329
|
_pollDetailsData = _pollDetails;
|
|
15332
|
-
_context.n =
|
|
15330
|
+
_context.n = 110;
|
|
15333
15331
|
return call(getActiveChannelId);
|
|
15334
|
-
case
|
|
15332
|
+
case 110:
|
|
15335
15333
|
_activeChannelId1 = _context.v;
|
|
15336
15334
|
_deletedVotes = (_pollDetailsData === null || _pollDetailsData === void 0 ? void 0 : (_pollDetailsData$chan3 = _pollDetailsData.changedVotes) === null || _pollDetailsData$chan3 === void 0 ? void 0 : _pollDetailsData$chan3.removedVotes) || [];
|
|
15337
15335
|
_objs3 = [];
|
|
@@ -15344,27 +15342,27 @@ function watchForEvents() {
|
|
|
15344
15342
|
});
|
|
15345
15343
|
}
|
|
15346
15344
|
_i3 = 0, _objs4 = _objs3;
|
|
15347
|
-
case
|
|
15345
|
+
case 111:
|
|
15348
15346
|
if (!(_i3 < _objs4.length)) {
|
|
15349
|
-
_context.n =
|
|
15347
|
+
_context.n = 113;
|
|
15350
15348
|
break;
|
|
15351
15349
|
}
|
|
15352
15350
|
_obj2 = _objs4[_i3];
|
|
15353
15351
|
if (!(_pollDetailsData !== null && _pollDetailsData !== void 0 && _pollDetailsData.id && _obj2.vote)) {
|
|
15354
|
-
_context.n =
|
|
15352
|
+
_context.n = 112;
|
|
15355
15353
|
break;
|
|
15356
15354
|
}
|
|
15357
|
-
_context.n =
|
|
15355
|
+
_context.n = 112;
|
|
15358
15356
|
return put(deletePollVotesFromListAC(_pollDetailsData.id, _obj2.vote.optionId, [_obj2.vote], _messageId2));
|
|
15359
|
-
case
|
|
15357
|
+
case 112:
|
|
15360
15358
|
_i3++;
|
|
15361
|
-
_context.n =
|
|
15359
|
+
_context.n = 111;
|
|
15362
15360
|
break;
|
|
15363
|
-
case
|
|
15361
|
+
case 113:
|
|
15364
15362
|
_i4 = 0, _objs5 = _objs3;
|
|
15365
|
-
case
|
|
15363
|
+
case 114:
|
|
15366
15364
|
if (!(_i4 < _objs5.length)) {
|
|
15367
|
-
_context.n =
|
|
15365
|
+
_context.n = 116;
|
|
15368
15366
|
break;
|
|
15369
15367
|
}
|
|
15370
15368
|
_obj3 = _objs5[_i4];
|
|
@@ -15373,23 +15371,23 @@ function watchForEvents() {
|
|
|
15373
15371
|
params: {}
|
|
15374
15372
|
}, _obj3);
|
|
15375
15373
|
if (!(_channel10.id === _activeChannelId1)) {
|
|
15376
|
-
_context.n =
|
|
15374
|
+
_context.n = 115;
|
|
15377
15375
|
break;
|
|
15378
15376
|
}
|
|
15379
15377
|
updateMessageOnAllMessages(_messageId2, {}, _obj3);
|
|
15380
|
-
_context.n =
|
|
15378
|
+
_context.n = 115;
|
|
15381
15379
|
return put(updateMessageAC(_messageId2, {}, undefined, _obj3));
|
|
15382
|
-
case
|
|
15380
|
+
case 115:
|
|
15383
15381
|
_i4++;
|
|
15384
|
-
_context.n =
|
|
15382
|
+
_context.n = 114;
|
|
15385
15383
|
break;
|
|
15386
|
-
case
|
|
15387
|
-
return _context.a(3,
|
|
15388
|
-
case
|
|
15384
|
+
case 116:
|
|
15385
|
+
return _context.a(3, 183);
|
|
15386
|
+
case 117:
|
|
15389
15387
|
_channel11 = args.channel, _pollDetails2 = args.pollDetails, _messageId3 = args.messageId;
|
|
15390
|
-
_context.n =
|
|
15388
|
+
_context.n = 118;
|
|
15391
15389
|
return call(getActiveChannelId);
|
|
15392
|
-
case
|
|
15390
|
+
case 118:
|
|
15393
15391
|
_activeChannelId10 = _context.v;
|
|
15394
15392
|
_pollDetailsData2 = _pollDetails2;
|
|
15395
15393
|
retractedVotes = (_pollDetailsData2 === null || _pollDetailsData2 === void 0 ? void 0 : (_pollDetailsData2$cha = _pollDetailsData2.changedVotes) === null || _pollDetailsData2$cha === void 0 ? void 0 : _pollDetailsData2$cha.removedVotes) || [];
|
|
@@ -15403,9 +15401,9 @@ function watchForEvents() {
|
|
|
15403
15401
|
});
|
|
15404
15402
|
}
|
|
15405
15403
|
_i5 = 0, _objs7 = _objs6;
|
|
15406
|
-
case
|
|
15404
|
+
case 119:
|
|
15407
15405
|
if (!(_i5 < _objs7.length)) {
|
|
15408
|
-
_context.n =
|
|
15406
|
+
_context.n = 124;
|
|
15409
15407
|
break;
|
|
15410
15408
|
}
|
|
15411
15409
|
_obj4 = _objs7[_i5];
|
|
@@ -15414,40 +15412,40 @@ function watchForEvents() {
|
|
|
15414
15412
|
params: {}
|
|
15415
15413
|
}, _obj4);
|
|
15416
15414
|
if (!(_pollDetailsData2 !== null && _pollDetailsData2 !== void 0 && _pollDetailsData2.id && retractedVotes.length > 0)) {
|
|
15417
|
-
_context.n =
|
|
15415
|
+
_context.n = 122;
|
|
15418
15416
|
break;
|
|
15419
15417
|
}
|
|
15420
15418
|
_iterator6 = _createForOfIteratorHelperLoose(retractedVotes);
|
|
15421
|
-
case
|
|
15419
|
+
case 120:
|
|
15422
15420
|
if ((_step6 = _iterator6()).done) {
|
|
15423
|
-
_context.n =
|
|
15421
|
+
_context.n = 122;
|
|
15424
15422
|
break;
|
|
15425
15423
|
}
|
|
15426
15424
|
_vote3 = _step6.value;
|
|
15427
|
-
_context.n =
|
|
15425
|
+
_context.n = 121;
|
|
15428
15426
|
return put(deletePollVotesFromListAC(_pollDetailsData2.id, _vote3.optionId, [_vote3], _messageId3));
|
|
15429
|
-
case
|
|
15430
|
-
_context.n =
|
|
15427
|
+
case 121:
|
|
15428
|
+
_context.n = 120;
|
|
15431
15429
|
break;
|
|
15432
|
-
case
|
|
15430
|
+
case 122:
|
|
15433
15431
|
if (!(_channel11.id === _activeChannelId10)) {
|
|
15434
|
-
_context.n =
|
|
15432
|
+
_context.n = 123;
|
|
15435
15433
|
break;
|
|
15436
15434
|
}
|
|
15437
15435
|
updateMessageOnAllMessages(_messageId3, {}, _obj4);
|
|
15438
|
-
_context.n =
|
|
15436
|
+
_context.n = 123;
|
|
15439
15437
|
return put(updateMessageAC(_messageId3, {}, undefined, _obj4));
|
|
15440
|
-
case
|
|
15438
|
+
case 123:
|
|
15441
15439
|
_i5++;
|
|
15442
|
-
_context.n =
|
|
15440
|
+
_context.n = 119;
|
|
15443
15441
|
break;
|
|
15444
|
-
case
|
|
15445
|
-
return _context.a(3,
|
|
15446
|
-
case
|
|
15442
|
+
case 124:
|
|
15443
|
+
return _context.a(3, 183);
|
|
15444
|
+
case 125:
|
|
15447
15445
|
_channel12 = args.channel, _messageId4 = args.messageId;
|
|
15448
|
-
_context.n =
|
|
15446
|
+
_context.n = 126;
|
|
15449
15447
|
return call(getActiveChannelId);
|
|
15450
|
-
case
|
|
15448
|
+
case 126:
|
|
15451
15449
|
_activeChannelId11 = _context.v;
|
|
15452
15450
|
_obj5 = {
|
|
15453
15451
|
type: 'close',
|
|
@@ -15458,54 +15456,54 @@ function watchForEvents() {
|
|
|
15458
15456
|
params: {}
|
|
15459
15457
|
}, _obj5);
|
|
15460
15458
|
if (!(_channel12.id === _activeChannelId11)) {
|
|
15461
|
-
_context.n =
|
|
15459
|
+
_context.n = 128;
|
|
15462
15460
|
break;
|
|
15463
15461
|
}
|
|
15464
15462
|
updateMessageOnAllMessages(_messageId4, {}, _obj5);
|
|
15465
|
-
_context.n =
|
|
15463
|
+
_context.n = 127;
|
|
15466
15464
|
return put(updateMessageAC(_messageId4, {}, undefined, _obj5));
|
|
15465
|
+
case 127:
|
|
15466
|
+
return _context.a(3, 183);
|
|
15467
|
+
case 128:
|
|
15468
|
+
return _context.a(3, 183);
|
|
15467
15469
|
case 129:
|
|
15468
|
-
return _context.a(3, 185);
|
|
15469
|
-
case 130:
|
|
15470
|
-
return _context.a(3, 185);
|
|
15471
|
-
case 131:
|
|
15472
15470
|
_channel13 = args.channel, _user = args.user, _message3 = args.message, _reaction = args.reaction;
|
|
15473
15471
|
log.info('channel REACTION_DELETED ... ', _channel13);
|
|
15474
15472
|
channelFromMap = getChannelFromMap(_channel13.id);
|
|
15475
15473
|
_isSelf = _user.id === SceytChatClient.user.id;
|
|
15476
|
-
_context.n =
|
|
15474
|
+
_context.n = 130;
|
|
15477
15475
|
return call(getActiveChannelId);
|
|
15478
|
-
case
|
|
15476
|
+
case 130:
|
|
15479
15477
|
_activeChannelId12 = _context.v;
|
|
15480
15478
|
if (!(_channel13.id === _activeChannelId12)) {
|
|
15481
|
-
_context.n =
|
|
15479
|
+
_context.n = 132;
|
|
15482
15480
|
break;
|
|
15483
15481
|
}
|
|
15484
|
-
_context.n =
|
|
15482
|
+
_context.n = 131;
|
|
15485
15483
|
return put(deleteReactionFromMessageAC(_message3, _reaction, _isSelf));
|
|
15486
|
-
case
|
|
15484
|
+
case 131:
|
|
15487
15485
|
removeReactionOnAllMessages(_message3, _reaction, true);
|
|
15488
|
-
case
|
|
15486
|
+
case 132:
|
|
15489
15487
|
_channelUpdateParams = JSON.parse(JSON.stringify(_channel13));
|
|
15490
15488
|
if (channelFromMap && channelFromMap.lastReactedMessage && channelFromMap.lastReactedMessage.id === _message3.id) {
|
|
15491
15489
|
_channelUpdateParams.lastReactedMessage = null;
|
|
15492
15490
|
}
|
|
15493
|
-
_context.n =
|
|
15491
|
+
_context.n = 133;
|
|
15494
15492
|
return put(updateChannelDataAC(_channel13.id, _channelUpdateParams));
|
|
15495
|
-
case
|
|
15493
|
+
case 133:
|
|
15496
15494
|
updateChannelOnAllChannels(_channel13.id, _channelUpdateParams);
|
|
15497
15495
|
if (checkChannelExistsOnMessagesMap(_channel13.id)) {
|
|
15498
15496
|
removeReactionToMessageOnMap(_channel13.id, _message3, _reaction, true);
|
|
15499
15497
|
}
|
|
15500
|
-
return _context.a(3,
|
|
15501
|
-
case
|
|
15498
|
+
return _context.a(3, 183);
|
|
15499
|
+
case 134:
|
|
15502
15500
|
_channel14 = args.channel;
|
|
15503
15501
|
if (!_channel14) {
|
|
15504
|
-
_context.n =
|
|
15502
|
+
_context.n = 136;
|
|
15505
15503
|
break;
|
|
15506
15504
|
}
|
|
15507
15505
|
_updatedChannel = JSON.parse(JSON.stringify(_channel14));
|
|
15508
|
-
_context.n =
|
|
15506
|
+
_context.n = 135;
|
|
15509
15507
|
return put(updateChannelDataAC(_channel14.id, {
|
|
15510
15508
|
lastMessage: _channel14.lastMessage,
|
|
15511
15509
|
newMessageCount: _channel14.newMessageCount,
|
|
@@ -15518,36 +15516,36 @@ function watchForEvents() {
|
|
|
15518
15516
|
lastDisplayedMessageId: _channel14.lastDisplayedMessageId,
|
|
15519
15517
|
messageRetentionPeriod: _channel14.messageRetentionPeriod
|
|
15520
15518
|
}));
|
|
15521
|
-
case
|
|
15519
|
+
case 135:
|
|
15522
15520
|
updateChannelOnAllChannels(_channel14.id, _updatedChannel);
|
|
15523
|
-
case
|
|
15524
|
-
return _context.a(3,
|
|
15525
|
-
case
|
|
15521
|
+
case 136:
|
|
15522
|
+
return _context.a(3, 183);
|
|
15523
|
+
case 137:
|
|
15526
15524
|
_channel15 = args.channel;
|
|
15527
15525
|
log.info('CLEAR_HISTORY: ', _channel15);
|
|
15528
|
-
_context.n =
|
|
15526
|
+
_context.n = 138;
|
|
15529
15527
|
return call(getActiveChannelId);
|
|
15530
|
-
case
|
|
15528
|
+
case 138:
|
|
15531
15529
|
_activeChannelId13 = _context.v;
|
|
15532
|
-
_context.n =
|
|
15530
|
+
_context.n = 139;
|
|
15533
15531
|
return call(checkChannelExists, _channel15.id);
|
|
15534
|
-
case
|
|
15532
|
+
case 139:
|
|
15535
15533
|
channelExist = _context.v;
|
|
15536
15534
|
if (!(_channel15.id === _activeChannelId13)) {
|
|
15537
|
-
_context.n =
|
|
15535
|
+
_context.n = 141;
|
|
15538
15536
|
break;
|
|
15539
15537
|
}
|
|
15540
|
-
_context.n =
|
|
15538
|
+
_context.n = 140;
|
|
15541
15539
|
return put(clearMessagesAC());
|
|
15542
|
-
case
|
|
15540
|
+
case 140:
|
|
15543
15541
|
removeAllMessages();
|
|
15544
|
-
case
|
|
15542
|
+
case 141:
|
|
15545
15543
|
removeMessagesFromMap(_channel15.id);
|
|
15546
15544
|
if (!channelExist) {
|
|
15547
|
-
_context.n =
|
|
15545
|
+
_context.n = 142;
|
|
15548
15546
|
break;
|
|
15549
15547
|
}
|
|
15550
|
-
_context.n =
|
|
15548
|
+
_context.n = 142;
|
|
15551
15549
|
return put(updateChannelDataAC(_channel15.id, {
|
|
15552
15550
|
lastMessage: null,
|
|
15553
15551
|
newMessageCount: 0,
|
|
@@ -15555,7 +15553,7 @@ function watchForEvents() {
|
|
|
15555
15553
|
muted: _channel15.muted,
|
|
15556
15554
|
mutedTill: _channel15.mutedTill
|
|
15557
15555
|
}));
|
|
15558
|
-
case
|
|
15556
|
+
case 142:
|
|
15559
15557
|
updateChannelOnAllChannels(_channel15.id, {
|
|
15560
15558
|
lastMessage: null,
|
|
15561
15559
|
newMessageCount: 0,
|
|
@@ -15563,260 +15561,260 @@ function watchForEvents() {
|
|
|
15563
15561
|
muted: _channel15.muted,
|
|
15564
15562
|
mutedTill: _channel15.mutedTill
|
|
15565
15563
|
});
|
|
15566
|
-
return _context.a(3,
|
|
15567
|
-
case
|
|
15564
|
+
return _context.a(3, 183);
|
|
15565
|
+
case 143:
|
|
15568
15566
|
_channel16 = args.channel;
|
|
15569
15567
|
log.info('channel MUTE ... ');
|
|
15570
|
-
_context.n =
|
|
15568
|
+
_context.n = 144;
|
|
15571
15569
|
return put(updateChannelDataAC(_channel16.id, {
|
|
15572
15570
|
muted: _channel16.muted,
|
|
15573
15571
|
mutedTill: _channel16.mutedTill
|
|
15574
15572
|
}));
|
|
15575
|
-
case
|
|
15573
|
+
case 144:
|
|
15576
15574
|
updateChannelOnAllChannels(_channel16.id, {
|
|
15577
15575
|
muted: _channel16.muted,
|
|
15578
15576
|
mutedTill: _channel16.mutedTill
|
|
15579
15577
|
});
|
|
15580
|
-
return _context.a(3,
|
|
15581
|
-
case
|
|
15578
|
+
return _context.a(3, 183);
|
|
15579
|
+
case 145:
|
|
15582
15580
|
_channel17 = args.channel;
|
|
15583
15581
|
log.info('channel UNMUTE ... ');
|
|
15584
|
-
_context.n =
|
|
15582
|
+
_context.n = 146;
|
|
15585
15583
|
return put(updateChannelDataAC(_channel17.id, {
|
|
15586
15584
|
muted: _channel17.muted,
|
|
15587
15585
|
mutedTill: _channel17.mutedTill
|
|
15588
15586
|
}));
|
|
15589
|
-
case
|
|
15587
|
+
case 146:
|
|
15590
15588
|
updateChannelOnAllChannels(_channel17.id, {
|
|
15591
15589
|
muted: _channel17.muted,
|
|
15592
15590
|
mutedTill: _channel17.mutedTill
|
|
15593
15591
|
});
|
|
15594
|
-
return _context.a(3,
|
|
15595
|
-
case
|
|
15592
|
+
return _context.a(3, 183);
|
|
15593
|
+
case 147:
|
|
15596
15594
|
_channel18 = args.channel;
|
|
15597
15595
|
log.info('channel PINED ... ');
|
|
15598
|
-
_context.n =
|
|
15596
|
+
_context.n = 148;
|
|
15599
15597
|
return put(updateChannelDataAC(_channel18.id, {
|
|
15600
15598
|
pinnedAt: _channel18.pinnedAt
|
|
15601
15599
|
}, true));
|
|
15602
|
-
case
|
|
15600
|
+
case 148:
|
|
15603
15601
|
updateChannelOnAllChannels(_channel18.id, {
|
|
15604
15602
|
pinnedAt: _channel18.pinnedAt
|
|
15605
15603
|
});
|
|
15606
|
-
return _context.a(3,
|
|
15607
|
-
case
|
|
15604
|
+
return _context.a(3, 183);
|
|
15605
|
+
case 149:
|
|
15608
15606
|
_channel19 = args.channel;
|
|
15609
15607
|
log.info('channel UNPINED ... ');
|
|
15610
|
-
_context.n =
|
|
15608
|
+
_context.n = 150;
|
|
15611
15609
|
return put(updateChannelDataAC(_channel19.id, {
|
|
15612
15610
|
pinnedAt: _channel19.pinnedAt
|
|
15613
15611
|
}, false, true));
|
|
15614
|
-
case
|
|
15612
|
+
case 150:
|
|
15615
15613
|
updateChannelOnAllChannels(_channel19.id, {
|
|
15616
15614
|
pinnedAt: _channel19.pinnedAt
|
|
15617
15615
|
});
|
|
15618
|
-
return _context.a(3,
|
|
15619
|
-
case
|
|
15616
|
+
return _context.a(3, 183);
|
|
15617
|
+
case 151:
|
|
15620
15618
|
_channel20 = args.channel;
|
|
15621
15619
|
log.info('channel HIDE ... ');
|
|
15622
|
-
_context.n =
|
|
15620
|
+
_context.n = 152;
|
|
15623
15621
|
return put(setChannelToHideAC(_channel20));
|
|
15624
|
-
case
|
|
15625
|
-
return _context.a(3,
|
|
15626
|
-
case
|
|
15622
|
+
case 152:
|
|
15623
|
+
return _context.a(3, 183);
|
|
15624
|
+
case 153:
|
|
15627
15625
|
_channel21 = args.channel;
|
|
15628
15626
|
log.info('channel UNHIDE ... ');
|
|
15629
|
-
_context.n =
|
|
15627
|
+
_context.n = 154;
|
|
15630
15628
|
return put(setChannelToUnHideAC(_channel21));
|
|
15631
|
-
case
|
|
15632
|
-
return _context.a(3,
|
|
15633
|
-
case
|
|
15629
|
+
case 154:
|
|
15630
|
+
return _context.a(3, 183);
|
|
15631
|
+
case 155:
|
|
15634
15632
|
_channel22 = args.channel;
|
|
15635
|
-
_context.n =
|
|
15633
|
+
_context.n = 156;
|
|
15636
15634
|
return put(updateChannelDataAC(_channel22.id, {
|
|
15637
15635
|
unread: _channel22.unread,
|
|
15638
15636
|
muted: _channel22.muted,
|
|
15639
15637
|
mutedTill: _channel22.mutedTill
|
|
15640
15638
|
}));
|
|
15641
|
-
case
|
|
15639
|
+
case 156:
|
|
15642
15640
|
_groupName5 = getChannelGroupName(_channel22);
|
|
15643
|
-
_context.n =
|
|
15641
|
+
_context.n = 157;
|
|
15644
15642
|
return put(updateSearchedChannelDataAC(_channel22.id, {
|
|
15645
15643
|
unread: _channel22.unread
|
|
15646
15644
|
}, _groupName5));
|
|
15647
|
-
case
|
|
15645
|
+
case 157:
|
|
15648
15646
|
updateChannelOnAllChannels(_channel22.id, {
|
|
15649
15647
|
unread: _channel22.unread
|
|
15650
15648
|
});
|
|
15651
|
-
return _context.a(3,
|
|
15652
|
-
case
|
|
15649
|
+
return _context.a(3, 183);
|
|
15650
|
+
case 158:
|
|
15653
15651
|
_channel23 = args.channel;
|
|
15654
|
-
_context.n =
|
|
15652
|
+
_context.n = 159;
|
|
15655
15653
|
return put(updateChannelDataAC(_channel23.id, {
|
|
15656
15654
|
unread: _channel23.unread,
|
|
15657
15655
|
muted: _channel23.muted,
|
|
15658
15656
|
mutedTill: _channel23.mutedTill
|
|
15659
15657
|
}));
|
|
15660
|
-
case
|
|
15658
|
+
case 159:
|
|
15661
15659
|
_groupName6 = getChannelGroupName(_channel23);
|
|
15662
|
-
_context.n =
|
|
15660
|
+
_context.n = 160;
|
|
15663
15661
|
return put(updateSearchedChannelDataAC(_channel23.id, {
|
|
15664
15662
|
unread: _channel23.unread
|
|
15665
15663
|
}, _groupName6));
|
|
15666
|
-
case
|
|
15664
|
+
case 160:
|
|
15667
15665
|
updateChannelOnAllChannels(_channel23.id, {
|
|
15668
15666
|
unread: _channel23.unread
|
|
15669
15667
|
});
|
|
15670
|
-
return _context.a(3,
|
|
15671
|
-
case
|
|
15668
|
+
return _context.a(3, 183);
|
|
15669
|
+
case 161:
|
|
15672
15670
|
_channel24 = args.channel, members = args.members;
|
|
15673
15671
|
log.info('channel CHANGE_ROLE channel ... ', _channel24);
|
|
15674
15672
|
log.info('channel CHANGE_ROLE member ... ', members);
|
|
15675
|
-
_context.n =
|
|
15673
|
+
_context.n = 162;
|
|
15676
15674
|
return call(getActiveChannelId);
|
|
15677
|
-
case
|
|
15675
|
+
case 162:
|
|
15678
15676
|
_activeChannelId14 = _context.v;
|
|
15679
15677
|
if (!(_channel24.id === _activeChannelId14)) {
|
|
15680
|
-
_context.n =
|
|
15678
|
+
_context.n = 163;
|
|
15681
15679
|
break;
|
|
15682
15680
|
}
|
|
15683
|
-
_context.n =
|
|
15681
|
+
_context.n = 163;
|
|
15684
15682
|
return put(updateMembersAC(members));
|
|
15685
|
-
case
|
|
15683
|
+
case 163:
|
|
15686
15684
|
i = 0;
|
|
15687
|
-
case
|
|
15685
|
+
case 164:
|
|
15688
15686
|
if (!(i < members.length)) {
|
|
15689
|
-
_context.n =
|
|
15687
|
+
_context.n = 167;
|
|
15690
15688
|
break;
|
|
15691
15689
|
}
|
|
15692
15690
|
if (!(members[i].id === SceytChatClient.user.id)) {
|
|
15693
|
-
_context.n =
|
|
15691
|
+
_context.n = 166;
|
|
15694
15692
|
break;
|
|
15695
15693
|
}
|
|
15696
|
-
_context.n =
|
|
15694
|
+
_context.n = 165;
|
|
15697
15695
|
return put(updateChannelDataAC(_channel24.id, {
|
|
15698
15696
|
userRole: members[i].role,
|
|
15699
15697
|
muted: _channel24.muted,
|
|
15700
15698
|
mutedTill: _channel24.mutedTill
|
|
15701
15699
|
}));
|
|
15702
|
-
case
|
|
15700
|
+
case 165:
|
|
15703
15701
|
updateChannelOnAllChannels(_channel24.id, {
|
|
15704
15702
|
userRole: members[i].role,
|
|
15705
15703
|
muted: _channel24.muted,
|
|
15706
15704
|
mutedTill: _channel24.mutedTill
|
|
15707
15705
|
});
|
|
15708
|
-
case
|
|
15706
|
+
case 166:
|
|
15709
15707
|
i++;
|
|
15710
|
-
_context.n =
|
|
15708
|
+
_context.n = 164;
|
|
15711
15709
|
break;
|
|
15712
|
-
case
|
|
15713
|
-
return _context.a(3,
|
|
15714
|
-
case
|
|
15710
|
+
case 167:
|
|
15711
|
+
return _context.a(3, 183);
|
|
15712
|
+
case 168:
|
|
15715
15713
|
_channel25 = args.channel;
|
|
15716
15714
|
log.info('channel frozen channel ... ', _channel25);
|
|
15717
|
-
return _context.a(3,
|
|
15718
|
-
case
|
|
15715
|
+
return _context.a(3, 183);
|
|
15716
|
+
case 169:
|
|
15719
15717
|
_channel26 = args.channel;
|
|
15720
15718
|
log.info('channel unfrozen channel ... ', _channel26);
|
|
15721
|
-
return _context.a(3,
|
|
15722
|
-
case
|
|
15719
|
+
return _context.a(3, 183);
|
|
15720
|
+
case 170:
|
|
15723
15721
|
_channelId2 = args.channelId, from = args.from, name = args.name;
|
|
15724
15722
|
log.info('channel event received >>>... . . . . . ', args);
|
|
15725
15723
|
if (!(from.id === SceytChatClient.user.id)) {
|
|
15726
|
-
_context.n =
|
|
15724
|
+
_context.n = 171;
|
|
15727
15725
|
break;
|
|
15728
15726
|
}
|
|
15729
|
-
return _context.a(3,
|
|
15730
|
-
case
|
|
15727
|
+
return _context.a(3, 183);
|
|
15728
|
+
case 171:
|
|
15731
15729
|
if (!(name === 'start_typing')) {
|
|
15732
|
-
_context.n =
|
|
15730
|
+
_context.n = 173;
|
|
15733
15731
|
break;
|
|
15734
15732
|
}
|
|
15735
|
-
if (!usersTimeout[_channelId2]) {
|
|
15736
|
-
usersTimeout[_channelId2] = {};
|
|
15733
|
+
if (!usersTimeout.typingTimeout[_channelId2]) {
|
|
15734
|
+
usersTimeout.typingTimeout[_channelId2] = {};
|
|
15737
15735
|
}
|
|
15738
|
-
if (usersTimeout[_channelId2] && usersTimeout[_channelId2][from.id]) {
|
|
15739
|
-
clearTimeout(usersTimeout[_channelId2][from.id]);
|
|
15736
|
+
if (usersTimeout.typingTimeout[_channelId2] && usersTimeout.typingTimeout[_channelId2][from.id]) {
|
|
15737
|
+
clearTimeout(usersTimeout.typingTimeout[_channelId2][from.id]);
|
|
15740
15738
|
}
|
|
15741
|
-
usersTimeout[_channelId2][from.id] = setTimeout(function () {
|
|
15739
|
+
usersTimeout.typingTimeout[_channelId2][from.id] = setTimeout(function () {
|
|
15742
15740
|
channelListener.onReceivedChannelEvent(_channelId2, from, 'stop_typing');
|
|
15743
15741
|
}, 5000);
|
|
15744
|
-
_context.n =
|
|
15742
|
+
_context.n = 172;
|
|
15745
15743
|
return put(switchTypingIndicatorAC(true, _channelId2, from));
|
|
15746
|
-
case
|
|
15747
|
-
_context.n =
|
|
15744
|
+
case 172:
|
|
15745
|
+
_context.n = 178;
|
|
15748
15746
|
break;
|
|
15749
|
-
case
|
|
15747
|
+
case 173:
|
|
15750
15748
|
if (!(name === 'stop_typing')) {
|
|
15751
|
-
_context.n =
|
|
15749
|
+
_context.n = 175;
|
|
15752
15750
|
break;
|
|
15753
15751
|
}
|
|
15754
|
-
if (usersTimeout[_channelId2] && usersTimeout[_channelId2][from.id]) {
|
|
15755
|
-
clearTimeout(usersTimeout[_channelId2][from.id]);
|
|
15752
|
+
if (usersTimeout.typingTimeout[_channelId2] && usersTimeout.typingTimeout[_channelId2][from.id]) {
|
|
15753
|
+
clearTimeout(usersTimeout.typingTimeout[_channelId2][from.id]);
|
|
15756
15754
|
}
|
|
15757
|
-
_context.n =
|
|
15755
|
+
_context.n = 174;
|
|
15758
15756
|
return put(switchTypingIndicatorAC(false, _channelId2, from));
|
|
15759
|
-
case
|
|
15760
|
-
_context.n =
|
|
15757
|
+
case 174:
|
|
15758
|
+
_context.n = 178;
|
|
15761
15759
|
break;
|
|
15762
|
-
case
|
|
15760
|
+
case 175:
|
|
15763
15761
|
if (!(name === 'start_recording')) {
|
|
15764
|
-
_context.n =
|
|
15762
|
+
_context.n = 177;
|
|
15765
15763
|
break;
|
|
15766
15764
|
}
|
|
15767
|
-
if (!usersTimeout[_channelId2]) {
|
|
15768
|
-
usersTimeout[_channelId2] = {};
|
|
15765
|
+
if (!usersTimeout.recordingTimeout[_channelId2]) {
|
|
15766
|
+
usersTimeout.recordingTimeout[_channelId2] = {};
|
|
15769
15767
|
}
|
|
15770
|
-
if (usersTimeout[_channelId2] && usersTimeout[_channelId2][from.id]) {
|
|
15771
|
-
clearTimeout(usersTimeout[_channelId2][from.id]);
|
|
15768
|
+
if (usersTimeout.recordingTimeout[_channelId2] && usersTimeout.recordingTimeout[_channelId2][from.id]) {
|
|
15769
|
+
clearTimeout(usersTimeout.recordingTimeout[_channelId2][from.id]);
|
|
15772
15770
|
}
|
|
15773
|
-
usersTimeout[_channelId2][from.id] = setTimeout(function () {
|
|
15771
|
+
usersTimeout.recordingTimeout[_channelId2][from.id] = setTimeout(function () {
|
|
15774
15772
|
channelListener.onReceivedChannelEvent(_channelId2, from, 'stop_recording');
|
|
15775
15773
|
}, 5000);
|
|
15776
|
-
_context.n =
|
|
15774
|
+
_context.n = 176;
|
|
15777
15775
|
return put(switchRecordingIndicatorAC(true, _channelId2, from));
|
|
15778
|
-
case
|
|
15779
|
-
_context.n =
|
|
15776
|
+
case 176:
|
|
15777
|
+
_context.n = 178;
|
|
15780
15778
|
break;
|
|
15781
|
-
case
|
|
15779
|
+
case 177:
|
|
15782
15780
|
if (!(name === 'stop_recording')) {
|
|
15783
|
-
_context.n =
|
|
15781
|
+
_context.n = 178;
|
|
15784
15782
|
break;
|
|
15785
15783
|
}
|
|
15786
|
-
if (usersTimeout[_channelId2] && usersTimeout[_channelId2][from.id]) {
|
|
15787
|
-
clearTimeout(usersTimeout[_channelId2][from.id]);
|
|
15784
|
+
if (usersTimeout.recordingTimeout[_channelId2] && usersTimeout.recordingTimeout[_channelId2][from.id]) {
|
|
15785
|
+
clearTimeout(usersTimeout.recordingTimeout[_channelId2][from.id]);
|
|
15788
15786
|
}
|
|
15789
|
-
_context.n =
|
|
15787
|
+
_context.n = 178;
|
|
15790
15788
|
return put(switchRecordingIndicatorAC(false, _channelId2, from));
|
|
15791
|
-
case
|
|
15792
|
-
return _context.a(3,
|
|
15793
|
-
case
|
|
15789
|
+
case 178:
|
|
15790
|
+
return _context.a(3, 183);
|
|
15791
|
+
case 179:
|
|
15794
15792
|
status = args.status;
|
|
15795
15793
|
log.info('connection status changed . . . . . ', status);
|
|
15796
|
-
_context.n =
|
|
15794
|
+
_context.n = 180;
|
|
15797
15795
|
return put(setConnectionStatusAC(status));
|
|
15798
|
-
case
|
|
15796
|
+
case 180:
|
|
15799
15797
|
if (!(status === CONNECTION_STATUS.CONNECTED)) {
|
|
15800
|
-
_context.n =
|
|
15798
|
+
_context.n = 181;
|
|
15801
15799
|
break;
|
|
15802
15800
|
}
|
|
15803
|
-
_context.n =
|
|
15801
|
+
_context.n = 181;
|
|
15804
15802
|
return put(getRolesAC());
|
|
15805
|
-
case
|
|
15806
|
-
return _context.a(3,
|
|
15807
|
-
case
|
|
15803
|
+
case 181:
|
|
15804
|
+
return _context.a(3, 183);
|
|
15805
|
+
case 182:
|
|
15808
15806
|
log.warn('UNHANDLED EVENT FROM REDUX-SAGA EVENT-CHANNEL');
|
|
15809
|
-
case
|
|
15810
|
-
_context.n =
|
|
15807
|
+
case 183:
|
|
15808
|
+
_context.n = 185;
|
|
15811
15809
|
break;
|
|
15812
|
-
case
|
|
15813
|
-
_context.p =
|
|
15810
|
+
case 184:
|
|
15811
|
+
_context.p = 184;
|
|
15814
15812
|
_t2 = _context.v;
|
|
15815
15813
|
log.error('Error in watchForEvents:', _t2);
|
|
15816
|
-
case
|
|
15814
|
+
case 185:
|
|
15817
15815
|
return _context.a(2);
|
|
15818
15816
|
}
|
|
15819
|
-
}, _callee, null, [[0,
|
|
15817
|
+
}, _callee, null, [[0, 184]]);
|
|
15820
15818
|
});
|
|
15821
15819
|
case 1:
|
|
15822
15820
|
return _context2.d(_regeneratorValues(_loop()), 2);
|