sceyt-chat-react-uikit 1.6.8-beta.3 → 1.6.8-beta.4
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 +413 -386
- package/index.modern.js +414 -387
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -7413,6 +7413,9 @@ var ChannelReducer = (function (state, _temp) {
|
|
|
7413
7413
|
} else {
|
|
7414
7414
|
newState.channels = newState.channels.map(function (channel) {
|
|
7415
7415
|
if (channel.id === _channelId) {
|
|
7416
|
+
if (newState.activeChannel && Object.prototype.hasOwnProperty.call(newState.activeChannel, 'id') && channel.id === newState.activeChannel.id) {
|
|
7417
|
+
newState.activeChannel = _extends({}, newState.activeChannel, config);
|
|
7418
|
+
}
|
|
7416
7419
|
return _extends({}, channel, config);
|
|
7417
7420
|
}
|
|
7418
7421
|
return channel;
|
|
@@ -7432,9 +7435,10 @@ var ChannelReducer = (function (state, _temp) {
|
|
|
7432
7435
|
var updateData = payload.updateData,
|
|
7433
7436
|
groupName = payload.groupName,
|
|
7434
7437
|
_channelId2 = payload.channelId;
|
|
7435
|
-
|
|
7438
|
+
var groupKey = groupName;
|
|
7439
|
+
if (newState.searchedChannels[groupKey] && newState.searchedChannels[groupKey].length) {
|
|
7436
7440
|
var _extends2;
|
|
7437
|
-
newState.searchedChannels = _extends({}, newState.searchedChannels, (_extends2 = {}, _extends2[groupName] = [].concat(newState.searchedChannels[
|
|
7441
|
+
newState.searchedChannels = _extends({}, newState.searchedChannels, (_extends2 = {}, _extends2[groupName] = [].concat(newState.searchedChannels[groupKey]).map(function (channel) {
|
|
7438
7442
|
if (channel.id === _channelId2) {
|
|
7439
7443
|
return _extends({}, channel, updateData);
|
|
7440
7444
|
}
|
|
@@ -10456,11 +10460,12 @@ function updateMembersPresenceAC(usersMap) {
|
|
|
10456
10460
|
}
|
|
10457
10461
|
};
|
|
10458
10462
|
}
|
|
10459
|
-
function loadMoreMembersAC(limit) {
|
|
10463
|
+
function loadMoreMembersAC(limit, channelId) {
|
|
10460
10464
|
return {
|
|
10461
10465
|
type: LOAD_MORE_MEMBERS,
|
|
10462
10466
|
payload: {
|
|
10463
|
-
limit: limit
|
|
10467
|
+
limit: limit,
|
|
10468
|
+
channelId: channelId
|
|
10464
10469
|
}
|
|
10465
10470
|
};
|
|
10466
10471
|
}
|
|
@@ -11228,12 +11233,12 @@ var UploadingIcon = styled__default.span(_templateObject35 || (_templateObject35
|
|
|
11228
11233
|
});
|
|
11229
11234
|
var TextInOneLine = styled__default.span(_templateObject36 || (_templateObject36 = _taggedTemplateLiteralLoose(["\n display: -webkit-box;\n -webkit-line-clamp: 1;\n -webkit-box-orient: vertical;\n overflow: hidden;\n text-overflow: ellipsis;\n"])));
|
|
11230
11235
|
var CancelResumeWrapper = styled__default.span(_templateObject37 || (_templateObject37 = _taggedTemplateLiteralLoose(["\n position: absolute;\n width: 20px;\n height: 20px;\n z-index: 3;\n\n > svg {\n width: 20px;\n height: 20px;\n }\n"])));
|
|
11231
|
-
var UploadPercent = styled__default.span(_templateObject38 || (_templateObject38 = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n justify-content: center;\n position: absolute;\n color: #fff;\n width: ", ";\n height: ", ";\n
|
|
11236
|
+
var UploadPercent = styled__default.span(_templateObject38 || (_templateObject38 = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n justify-content: center;\n position: absolute;\n color: #fff;\n width: ", ";\n height: ", ";\n background-color: ", ";\n border-radius: ", ";\n}\n ", "\n"])), function (props) {
|
|
11232
11237
|
return props.fileAttachment || props.isRepliedMessage || props.isDetailsView ? '40px' : '56px';
|
|
11233
11238
|
}, function (props) {
|
|
11234
11239
|
return props.fileAttachment || props.isRepliedMessage || props.isDetailsView ? '40px' : '56px';
|
|
11235
11240
|
}, function (props) {
|
|
11236
|
-
return props.backgroundColor;
|
|
11241
|
+
return props.backgroundColor + "40";
|
|
11237
11242
|
}, function (props) {
|
|
11238
11243
|
return props.borderRadius ? props.borderRadius : props.fileAttachment ? '8px' : props.isRepliedMessage ? '4px' : ' 50%';
|
|
11239
11244
|
}, function (props) {
|
|
@@ -11495,15 +11500,16 @@ function updateActiveChannelMembersAdd(addedMembers) {
|
|
|
11495
11500
|
state = _context.sent;
|
|
11496
11501
|
activeChannel = state.ChannelReducer.activeChannel;
|
|
11497
11502
|
if (!(activeChannel && activeChannel.id)) {
|
|
11498
|
-
_context.next =
|
|
11503
|
+
_context.next = 8;
|
|
11499
11504
|
break;
|
|
11500
11505
|
}
|
|
11501
11506
|
updatedMembers = [].concat(activeChannel.members || [], addedMembers);
|
|
11502
11507
|
updatedMembers = Array.from(new Set(updatedMembers));
|
|
11503
|
-
_context.
|
|
11504
|
-
return effects.put(updateChannelDataAC(activeChannel.id, {
|
|
11508
|
+
return _context.abrupt("return", {
|
|
11505
11509
|
members: updatedMembers
|
|
11506
|
-
})
|
|
11510
|
+
});
|
|
11511
|
+
case 8:
|
|
11512
|
+
return _context.abrupt("return", {});
|
|
11507
11513
|
case 9:
|
|
11508
11514
|
case "end":
|
|
11509
11515
|
return _context.stop();
|
|
@@ -11521,7 +11527,7 @@ function updateActiveChannelMembersRemove(removedMembers) {
|
|
|
11521
11527
|
state = _context2.sent;
|
|
11522
11528
|
activeChannel = state.ChannelReducer.activeChannel;
|
|
11523
11529
|
if (!(activeChannel && activeChannel.id)) {
|
|
11524
|
-
_context2.next =
|
|
11530
|
+
_context2.next = 8;
|
|
11525
11531
|
break;
|
|
11526
11532
|
}
|
|
11527
11533
|
updatedMembers = (activeChannel.members || []).filter(function (member) {
|
|
@@ -11530,10 +11536,11 @@ function updateActiveChannelMembersRemove(removedMembers) {
|
|
|
11530
11536
|
});
|
|
11531
11537
|
});
|
|
11532
11538
|
updatedMembers = Array.from(new Set(updatedMembers));
|
|
11533
|
-
_context2.
|
|
11534
|
-
return effects.put(updateChannelDataAC(activeChannel.id, {
|
|
11539
|
+
return _context2.abrupt("return", {
|
|
11535
11540
|
members: updatedMembers
|
|
11536
|
-
})
|
|
11541
|
+
});
|
|
11542
|
+
case 8:
|
|
11543
|
+
return _context2.abrupt("return", {});
|
|
11537
11544
|
case 9:
|
|
11538
11545
|
case "end":
|
|
11539
11546
|
return _context2.stop();
|
|
@@ -11900,7 +11907,7 @@ function watchForEvents() {
|
|
|
11900
11907
|
};
|
|
11901
11908
|
});
|
|
11902
11909
|
_loop = /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
11903
|
-
var _yield$take, type, args, createdChannel, channelFilterTypes, getFromContacts, channelExists, _chan, channel, _chan2, _channel, member, _channelExists, _activeChannelId, groupName, _channel2, _channelExists2, _channel3, removedMembers, _activeChannelId2, _channelExists3, activeChannel, _groupName, _channel4, addedMembers, _activeChannelId3, _channelExists4, _groupName2, updatedChannel, _channelExists5, subject, avatarUrl, muted, mutedTill, metadata, _activeChannelId4, _groupName3, _channel5, message, messageToHandle, _channelFilterTypes, _activeChannelId5, _channelExists6, channelForAdd, hasNextMessage, _groupName4, showNotifications, tabIsActive, _state$ThemeReducer$n, _state$ThemeReducer$n2, _state$ThemeReducer$n3, _state$ThemeReducer$n4, _state$ThemeReducer$n5, _state$ThemeReducer$n6, contactsMap, _getFromContacts, state, theme, accentColor, textSecondary, messageBody, channelId, markerList, _channel6, _activeChannelId6, updateLastMessage, markersMap, lastMessage, _channelId, _channel7, _channel8, deletedMessage, _activeChannelId7, _channelExists7, _channel9, _message, _activeChannelId8, _channelExists8, _channel0, user, _message2, reaction, isSelf, _activeChannelId9, _state$ThemeReducer$n7, _state$ThemeReducer$n8, _state$ThemeReducer$n9, _state$ThemeReducer$n0, _state$ThemeReducer$n1, _state$ThemeReducer$n10, _contactsMap, _getFromContacts2, _state, _theme, _accentColor, _textSecondary, _messageBody, channelUpdateParams, _channel1, _user, _message3, _reaction, channelFromMap, _isSelf, _activeChannelId0, _channelUpdateParams, _channel10, _updatedChannel, _channel11, _activeChannelId1, channelExist, _channel12, _channel13, _channel14, _channel15, _channel16, _channel17, _channel18, _groupName5, _channel19, _groupName6, _channel20, members, _activeChannelId10, i, _channel21, _channel22, _channelId2, from, name, status;
|
|
11910
|
+
var _yield$take, type, args, createdChannel, channelFilterTypes, getFromContacts, channelExists, _chan, channel, _chan2, _channel, member, _channelExists, _activeChannelId, groupName, updateChannelData, _channel2, _channelExists2, _channel3, removedMembers, _activeChannelId2, _channelExists3, activeChannel, _updateChannelData, _groupName, _channel4, addedMembers, _activeChannelId3, _channelExists4, _updateChannelData2, _groupName2, updatedChannel, _channelExists5, subject, avatarUrl, muted, mutedTill, metadata, _activeChannelId4, _groupName3, _channel5, message, messageToHandle, _channelFilterTypes, _activeChannelId5, _channelExists6, channelForAdd, hasNextMessage, _groupName4, showNotifications, tabIsActive, _state$ThemeReducer$n, _state$ThemeReducer$n2, _state$ThemeReducer$n3, _state$ThemeReducer$n4, _state$ThemeReducer$n5, _state$ThemeReducer$n6, contactsMap, _getFromContacts, state, theme, accentColor, textSecondary, messageBody, channelId, markerList, _channel6, _activeChannelId6, updateLastMessage, markersMap, lastMessage, _channelId, _channel7, _channel8, deletedMessage, _activeChannelId7, _channelExists7, _channel9, _message, _activeChannelId8, _channelExists8, _channel0, user, _message2, reaction, isSelf, _activeChannelId9, _state$ThemeReducer$n7, _state$ThemeReducer$n8, _state$ThemeReducer$n9, _state$ThemeReducer$n0, _state$ThemeReducer$n1, _state$ThemeReducer$n10, _contactsMap, _getFromContacts2, _state, _theme, _accentColor, _textSecondary, _messageBody, channelUpdateParams, _channel1, _user, _message3, _reaction, channelFromMap, _isSelf, _activeChannelId0, _channelUpdateParams, _channel10, _updatedChannel, _channel11, _activeChannelId1, channelExist, _channel12, _channel13, _channel14, _channel15, _channel16, _channel17, _channel18, _groupName5, _channel19, _groupName6, _channel20, members, _activeChannelId10, i, _channel21, _channel22, _channelId2, from, name, status;
|
|
11904
11911
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
11905
11912
|
while (1) switch (_context.prev = _context.next) {
|
|
11906
11913
|
case 0:
|
|
@@ -11911,7 +11918,7 @@ function watchForEvents() {
|
|
|
11911
11918
|
type = _yield$take.type;
|
|
11912
11919
|
args = _yield$take.args;
|
|
11913
11920
|
_context.t0 = type;
|
|
11914
|
-
_context.next = _context.t0 === CHANNEL_EVENT_TYPES.CREATE ? 8 : _context.t0 === CHANNEL_EVENT_TYPES.JOIN ? 25 : _context.t0 === CHANNEL_EVENT_TYPES.LEAVE ? 34 : _context.t0 === CHANNEL_EVENT_TYPES.BLOCK ?
|
|
11921
|
+
_context.next = _context.t0 === CHANNEL_EVENT_TYPES.CREATE ? 8 : _context.t0 === CHANNEL_EVENT_TYPES.JOIN ? 25 : _context.t0 === CHANNEL_EVENT_TYPES.LEAVE ? 34 : _context.t0 === CHANNEL_EVENT_TYPES.BLOCK ? 62 : _context.t0 === CHANNEL_EVENT_TYPES.UNBLOCK ? 69 : _context.t0 === CHANNEL_EVENT_TYPES.KICK_MEMBERS ? 71 : _context.t0 === CHANNEL_EVENT_TYPES.ADD_MEMBERS ? 104 : _context.t0 === CHANNEL_EVENT_TYPES.UPDATE_CHANNEL ? 131 : _context.t0 === CHANNEL_EVENT_TYPES.MESSAGE ? 149 : _context.t0 === CHANNEL_EVENT_TYPES.MESSAGE_MARKERS_RECEIVED ? 216 : _context.t0 === CHANNEL_EVENT_TYPES.DELETE ? 239 : _context.t0 === CHANNEL_EVENT_TYPES.DELETE_MESSAGE ? 246 : _context.t0 === CHANNEL_EVENT_TYPES.EDIT_MESSAGE ? 263 : _context.t0 === CHANNEL_EVENT_TYPES.REACTION_ADDED ? 278 : _context.t0 === CHANNEL_EVENT_TYPES.REACTION_DELETED ? 306 : _context.t0 === CHANNEL_EVENT_TYPES.UNREAD_MESSAGES_INFO ? 322 : _context.t0 === CHANNEL_EVENT_TYPES.CLEAR_HISTORY ? 329 : _context.t0 === CHANNEL_EVENT_TYPES.MUTE ? 347 : _context.t0 === CHANNEL_EVENT_TYPES.UNMUTE ? 353 : _context.t0 === CHANNEL_EVENT_TYPES.PINED ? 359 : _context.t0 === CHANNEL_EVENT_TYPES.UNPINED ? 365 : _context.t0 === CHANNEL_EVENT_TYPES.HIDE ? 371 : _context.t0 === CHANNEL_EVENT_TYPES.UNHIDE ? 376 : _context.t0 === CHANNEL_EVENT_TYPES.CHANNEL_MARKED_AS_UNREAD ? 381 : _context.t0 === CHANNEL_EVENT_TYPES.CHANNEL_MARKED_AS_READ ? 389 : _context.t0 === CHANNEL_EVENT_TYPES.CHANGE_ROLE ? 397 : _context.t0 === CHANNEL_EVENT_TYPES.FROZEN ? 416 : _context.t0 === CHANNEL_EVENT_TYPES.UNFROZEN ? 419 : _context.t0 === CHANNEL_EVENT_TYPES.CHANNEL_EVENT ? 422 : _context.t0 === CONNECTION_EVENT_TYPES.CONNECTION_STATUS_CHANGED ? 453 : 461;
|
|
11915
11922
|
break;
|
|
11916
11923
|
case 8:
|
|
11917
11924
|
createdChannel = args.createdChannel;
|
|
@@ -11945,7 +11952,7 @@ function watchForEvents() {
|
|
|
11945
11952
|
addChannelToAllChannels(createdChannel);
|
|
11946
11953
|
}
|
|
11947
11954
|
case 24:
|
|
11948
|
-
return _context.abrupt("break",
|
|
11955
|
+
return _context.abrupt("break", 462);
|
|
11949
11956
|
case 25:
|
|
11950
11957
|
channel = args.channel;
|
|
11951
11958
|
log.info('channel JOIN ... . ', channel);
|
|
@@ -11956,7 +11963,7 @@ function watchForEvents() {
|
|
|
11956
11963
|
if (!_chan2) {
|
|
11957
11964
|
addChannelToAllChannels(channel);
|
|
11958
11965
|
}
|
|
11959
|
-
return _context.abrupt("break",
|
|
11966
|
+
return _context.abrupt("break", 462);
|
|
11960
11967
|
case 34:
|
|
11961
11968
|
_channel = args.channel, member = args.member;
|
|
11962
11969
|
log.info('channel LEAVE ... ', _channel, member);
|
|
@@ -11974,217 +11981,227 @@ function watchForEvents() {
|
|
|
11974
11981
|
case 43:
|
|
11975
11982
|
removeChannelFromMap(_channel.id);
|
|
11976
11983
|
deleteChannelFromAllChannels(_channel.id);
|
|
11977
|
-
_context.next =
|
|
11984
|
+
_context.next = 61;
|
|
11978
11985
|
break;
|
|
11979
11986
|
case 47:
|
|
11980
11987
|
groupName = getChannelGroupName(_channel);
|
|
11981
11988
|
if (!_channelExists) {
|
|
11982
|
-
_context.next =
|
|
11989
|
+
_context.next = 58;
|
|
11983
11990
|
break;
|
|
11984
11991
|
}
|
|
11992
|
+
updateChannelData = {};
|
|
11985
11993
|
if (!(_activeChannelId === _channel.id)) {
|
|
11986
|
-
_context.next =
|
|
11994
|
+
_context.next = 56;
|
|
11987
11995
|
break;
|
|
11988
11996
|
}
|
|
11989
|
-
_context.next =
|
|
11997
|
+
_context.next = 53;
|
|
11990
11998
|
return effects.put(removeMemberFromListAC([member]));
|
|
11991
|
-
case
|
|
11992
|
-
_context.next =
|
|
11993
|
-
return updateActiveChannelMembersRemove
|
|
11994
|
-
case
|
|
11995
|
-
|
|
11996
|
-
|
|
11999
|
+
case 53:
|
|
12000
|
+
_context.next = 55;
|
|
12001
|
+
return effects.call(updateActiveChannelMembersRemove, [member]) || {};
|
|
12002
|
+
case 55:
|
|
12003
|
+
updateChannelData = _context.sent;
|
|
12004
|
+
case 56:
|
|
12005
|
+
_context.next = 58;
|
|
12006
|
+
return effects.put(updateChannelDataAC(_channel.id, _extends({
|
|
11997
12007
|
memberCount: _channel.memberCount,
|
|
11998
12008
|
muted: _channel.muted,
|
|
11999
12009
|
mutedTill: _channel.mutedTill
|
|
12000
|
-
}));
|
|
12001
|
-
case
|
|
12002
|
-
_context.next =
|
|
12010
|
+
}, updateChannelData)));
|
|
12011
|
+
case 58:
|
|
12012
|
+
_context.next = 60;
|
|
12003
12013
|
return effects.put(updateSearchedChannelDataAC(_channel.id, {
|
|
12004
12014
|
memberCount: _channel.memberCount,
|
|
12005
12015
|
muted: _channel.muted,
|
|
12006
12016
|
mutedTill: _channel.mutedTill
|
|
12007
12017
|
}, groupName));
|
|
12008
|
-
case
|
|
12018
|
+
case 60:
|
|
12009
12019
|
updateChannelOnAllChannels(_channel.id, {
|
|
12010
12020
|
memberCount: _channel.memberCount,
|
|
12011
12021
|
muted: _channel.muted,
|
|
12012
12022
|
mutedTill: _channel.mutedTill
|
|
12013
12023
|
});
|
|
12014
|
-
case
|
|
12015
|
-
return _context.abrupt("break",
|
|
12016
|
-
case
|
|
12024
|
+
case 61:
|
|
12025
|
+
return _context.abrupt("break", 462);
|
|
12026
|
+
case 62:
|
|
12017
12027
|
log.info('channel BLOCK ... ');
|
|
12018
12028
|
_channel2 = args.channel;
|
|
12019
12029
|
_channelExists2 = checkChannelExists(_channel2.id);
|
|
12020
12030
|
if (!_channelExists2) {
|
|
12021
|
-
_context.next =
|
|
12031
|
+
_context.next = 68;
|
|
12022
12032
|
break;
|
|
12023
12033
|
}
|
|
12024
|
-
_context.next =
|
|
12034
|
+
_context.next = 68;
|
|
12025
12035
|
return effects.put(removeChannelAC(_channel2.id));
|
|
12026
|
-
case
|
|
12027
|
-
return _context.abrupt("break",
|
|
12028
|
-
case 67:
|
|
12029
|
-
log.info('channel UNBLOCK ... ');
|
|
12030
|
-
return _context.abrupt("break", 455);
|
|
12036
|
+
case 68:
|
|
12037
|
+
return _context.abrupt("break", 462);
|
|
12031
12038
|
case 69:
|
|
12039
|
+
log.info('channel UNBLOCK ... ');
|
|
12040
|
+
return _context.abrupt("break", 462);
|
|
12041
|
+
case 71:
|
|
12032
12042
|
_channel3 = args.channel, removedMembers = args.removedMembers;
|
|
12033
12043
|
log.info('channel KICK_MEMBERS ... ', removedMembers);
|
|
12034
|
-
_context.next =
|
|
12044
|
+
_context.next = 75;
|
|
12035
12045
|
return effects.call(getActiveChannelId);
|
|
12036
|
-
case
|
|
12046
|
+
case 75:
|
|
12037
12047
|
_activeChannelId2 = _context.sent;
|
|
12038
12048
|
_channelExists3 = checkChannelExists(_channel3.id);
|
|
12039
12049
|
if (!_channelExists3) {
|
|
12040
|
-
_context.next =
|
|
12050
|
+
_context.next = 102;
|
|
12041
12051
|
break;
|
|
12042
12052
|
}
|
|
12043
12053
|
if (!removedMembers.find(function (mem) {
|
|
12044
12054
|
return mem.id === SceytChatClient.user.id;
|
|
12045
12055
|
})) {
|
|
12046
|
-
_context.next =
|
|
12056
|
+
_context.next = 90;
|
|
12047
12057
|
break;
|
|
12048
12058
|
}
|
|
12049
12059
|
removeChannelFromMap(_channel3.id);
|
|
12050
|
-
_context.next = 80;
|
|
12051
|
-
return effects.put(removeChannelAC(_channel3.id));
|
|
12052
|
-
case 80:
|
|
12053
12060
|
_context.next = 82;
|
|
12054
|
-
return effects.
|
|
12061
|
+
return effects.put(removeChannelAC(_channel3.id));
|
|
12055
12062
|
case 82:
|
|
12063
|
+
_context.next = 84;
|
|
12064
|
+
return effects.call(getLastChannelFromMap);
|
|
12065
|
+
case 84:
|
|
12056
12066
|
activeChannel = _context.sent;
|
|
12057
12067
|
if (!activeChannel) {
|
|
12058
|
-
_context.next =
|
|
12068
|
+
_context.next = 88;
|
|
12059
12069
|
break;
|
|
12060
12070
|
}
|
|
12061
|
-
_context.next =
|
|
12071
|
+
_context.next = 88;
|
|
12062
12072
|
return effects.put(switchChannelActionAC(JSON.parse(JSON.stringify(activeChannel))));
|
|
12063
|
-
case 86:
|
|
12064
|
-
_context.next = 98;
|
|
12065
|
-
break;
|
|
12066
12073
|
case 88:
|
|
12074
|
+
_context.next = 102;
|
|
12075
|
+
break;
|
|
12076
|
+
case 90:
|
|
12077
|
+
_updateChannelData = {};
|
|
12067
12078
|
if (!(_activeChannelId2 === _channel3.id)) {
|
|
12068
|
-
_context.next =
|
|
12079
|
+
_context.next = 97;
|
|
12069
12080
|
break;
|
|
12070
12081
|
}
|
|
12071
|
-
_context.next =
|
|
12082
|
+
_context.next = 94;
|
|
12072
12083
|
return effects.put(removeMemberFromListAC(removedMembers));
|
|
12073
|
-
case
|
|
12074
|
-
_context.next = 93;
|
|
12075
|
-
return updateActiveChannelMembersRemove(removedMembers);
|
|
12076
|
-
case 93:
|
|
12077
|
-
_groupName = getChannelGroupName(_channel3);
|
|
12084
|
+
case 94:
|
|
12078
12085
|
_context.next = 96;
|
|
12086
|
+
return effects.call(updateActiveChannelMembersRemove, removedMembers) || {};
|
|
12087
|
+
case 96:
|
|
12088
|
+
_updateChannelData = _context.sent;
|
|
12089
|
+
case 97:
|
|
12090
|
+
_groupName = getChannelGroupName(_channel3);
|
|
12091
|
+
_context.next = 100;
|
|
12079
12092
|
return effects.put(updateSearchedChannelDataAC(_channel3.id, {
|
|
12080
12093
|
memberCount: _channel3.memberCount,
|
|
12081
12094
|
muted: _channel3.muted,
|
|
12082
12095
|
mutedTill: _channel3.mutedTill
|
|
12083
12096
|
}, _groupName));
|
|
12084
|
-
case
|
|
12085
|
-
_context.next =
|
|
12086
|
-
return effects.put(updateChannelDataAC(_channel3.id, {
|
|
12097
|
+
case 100:
|
|
12098
|
+
_context.next = 102;
|
|
12099
|
+
return effects.put(updateChannelDataAC(_channel3.id, _extends({
|
|
12087
12100
|
memberCount: _channel3.memberCount,
|
|
12088
12101
|
muted: _channel3.muted,
|
|
12089
12102
|
mutedTill: _channel3.mutedTill
|
|
12090
|
-
}));
|
|
12091
|
-
case
|
|
12103
|
+
}, _updateChannelData)));
|
|
12104
|
+
case 102:
|
|
12092
12105
|
updateChannelOnAllChannels(_channel3.id, {
|
|
12093
12106
|
memberCount: _channel3.memberCount,
|
|
12094
12107
|
muted: _channel3.muted,
|
|
12095
12108
|
mutedTill: _channel3.mutedTill
|
|
12096
12109
|
});
|
|
12097
|
-
return _context.abrupt("break",
|
|
12098
|
-
case
|
|
12110
|
+
return _context.abrupt("break", 462);
|
|
12111
|
+
case 104:
|
|
12099
12112
|
_channel4 = args.channel, addedMembers = args.addedMembers;
|
|
12100
12113
|
log.info('channel ADD_MEMBERS ... ', addedMembers);
|
|
12101
|
-
_context.next =
|
|
12114
|
+
_context.next = 108;
|
|
12102
12115
|
return effects.call(getActiveChannelId);
|
|
12103
|
-
case
|
|
12116
|
+
case 108:
|
|
12104
12117
|
_activeChannelId3 = _context.sent;
|
|
12105
12118
|
_channelExists4 = checkChannelExists(_channel4.id);
|
|
12106
12119
|
if (!_channelExists4) {
|
|
12107
|
-
_context.next =
|
|
12120
|
+
_context.next = 122;
|
|
12108
12121
|
break;
|
|
12109
12122
|
}
|
|
12123
|
+
_updateChannelData2 = {};
|
|
12110
12124
|
if (!(_activeChannelId3 === _channel4.id)) {
|
|
12111
|
-
_context.next =
|
|
12125
|
+
_context.next = 118;
|
|
12112
12126
|
break;
|
|
12113
12127
|
}
|
|
12114
|
-
_context.next =
|
|
12128
|
+
_context.next = 115;
|
|
12115
12129
|
return effects.put(addMembersToListAC(addedMembers));
|
|
12116
|
-
case
|
|
12117
|
-
_context.next =
|
|
12118
|
-
return updateActiveChannelMembersAdd
|
|
12119
|
-
case
|
|
12120
|
-
|
|
12121
|
-
|
|
12130
|
+
case 115:
|
|
12131
|
+
_context.next = 117;
|
|
12132
|
+
return effects.call(updateActiveChannelMembersAdd, addedMembers) || {};
|
|
12133
|
+
case 117:
|
|
12134
|
+
_updateChannelData2 = _context.sent;
|
|
12135
|
+
case 118:
|
|
12136
|
+
_context.next = 120;
|
|
12137
|
+
return effects.put(updateChannelDataAC(_channel4.id, _extends({
|
|
12122
12138
|
memberCount: _channel4.memberCount,
|
|
12123
12139
|
muted: _channel4.muted,
|
|
12124
12140
|
mutedTill: _channel4.mutedTill
|
|
12125
|
-
}));
|
|
12126
|
-
case
|
|
12127
|
-
_context.next =
|
|
12141
|
+
}, _updateChannelData2)));
|
|
12142
|
+
case 120:
|
|
12143
|
+
_context.next = 126;
|
|
12128
12144
|
break;
|
|
12129
|
-
case
|
|
12130
|
-
_context.next =
|
|
12145
|
+
case 122:
|
|
12146
|
+
_context.next = 124;
|
|
12131
12147
|
return effects.call(setChannelInMap, _channel4);
|
|
12132
|
-
case
|
|
12133
|
-
_context.next =
|
|
12148
|
+
case 124:
|
|
12149
|
+
_context.next = 126;
|
|
12134
12150
|
return effects.put(setAddedToChannelAC(JSON.parse(JSON.stringify(_channel4))));
|
|
12135
|
-
case
|
|
12151
|
+
case 126:
|
|
12136
12152
|
_groupName2 = getChannelGroupName(_channel4);
|
|
12137
|
-
_context.next =
|
|
12153
|
+
_context.next = 129;
|
|
12138
12154
|
return effects.put(updateSearchedChannelDataAC(_channel4.id, {
|
|
12139
12155
|
memberCount: _channel4.memberCount,
|
|
12140
12156
|
muted: _channel4.muted,
|
|
12141
12157
|
mutedTill: _channel4.mutedTill
|
|
12142
12158
|
}, _groupName2));
|
|
12143
|
-
case
|
|
12159
|
+
case 129:
|
|
12144
12160
|
updateChannelOnAllChannels(_channel4.id, {
|
|
12145
12161
|
memberCount: _channel4.memberCount,
|
|
12146
12162
|
muted: _channel4.muted,
|
|
12147
12163
|
mutedTill: _channel4.mutedTill
|
|
12148
12164
|
});
|
|
12149
|
-
return _context.abrupt("break",
|
|
12150
|
-
case
|
|
12165
|
+
return _context.abrupt("break", 462);
|
|
12166
|
+
case 131:
|
|
12167
|
+
log.info('channel UPDATE_CHANNEL ... ');
|
|
12151
12168
|
updatedChannel = args.updatedChannel;
|
|
12152
12169
|
_channelExists5 = checkChannelExists(updatedChannel.id);
|
|
12153
12170
|
subject = updatedChannel.subject, avatarUrl = updatedChannel.avatarUrl, muted = updatedChannel.muted, mutedTill = updatedChannel.mutedTill, metadata = updatedChannel.metadata;
|
|
12154
12171
|
if (!_channelExists5) {
|
|
12155
|
-
_context.next =
|
|
12172
|
+
_context.next = 144;
|
|
12156
12173
|
break;
|
|
12157
12174
|
}
|
|
12158
|
-
_context.next =
|
|
12175
|
+
_context.next = 138;
|
|
12159
12176
|
return effects.put(updateChannelDataAC(updatedChannel.id, {
|
|
12160
12177
|
subject: subject,
|
|
12161
12178
|
avatarUrl: avatarUrl,
|
|
12162
12179
|
muted: muted,
|
|
12163
12180
|
mutedTill: mutedTill
|
|
12164
12181
|
}));
|
|
12165
|
-
case
|
|
12166
|
-
_context.next =
|
|
12182
|
+
case 138:
|
|
12183
|
+
_context.next = 140;
|
|
12167
12184
|
return effects.call(getActiveChannelId);
|
|
12168
|
-
case
|
|
12185
|
+
case 140:
|
|
12169
12186
|
_activeChannelId4 = _context.sent;
|
|
12170
12187
|
if (!(_activeChannelId4 === updatedChannel.id)) {
|
|
12171
|
-
_context.next =
|
|
12188
|
+
_context.next = 144;
|
|
12172
12189
|
break;
|
|
12173
12190
|
}
|
|
12174
|
-
_context.next =
|
|
12191
|
+
_context.next = 144;
|
|
12175
12192
|
return effects.put(setActiveChannelAC(_extends({}, updatedChannel, {
|
|
12176
12193
|
metadata: isJSON(metadata) ? JSON.parse(metadata) : metadata
|
|
12177
12194
|
})));
|
|
12178
|
-
case
|
|
12195
|
+
case 144:
|
|
12179
12196
|
_groupName3 = getChannelGroupName(updatedChannel);
|
|
12180
|
-
_context.next =
|
|
12197
|
+
_context.next = 147;
|
|
12181
12198
|
return effects.put(updateSearchedChannelDataAC(updatedChannel.id, {
|
|
12182
12199
|
subject: subject,
|
|
12183
12200
|
avatarUrl: avatarUrl,
|
|
12184
12201
|
muted: muted,
|
|
12185
12202
|
mutedTill: mutedTill
|
|
12186
12203
|
}, _groupName3));
|
|
12187
|
-
case
|
|
12204
|
+
case 147:
|
|
12188
12205
|
updateChannelOnAllChannels(updatedChannel.id, {
|
|
12189
12206
|
subject: subject,
|
|
12190
12207
|
avatarUrl: avatarUrl,
|
|
@@ -12192,102 +12209,102 @@ function watchForEvents() {
|
|
|
12192
12209
|
mutedTill: mutedTill,
|
|
12193
12210
|
metadata: isJSON(metadata) ? JSON.parse(metadata) : metadata
|
|
12194
12211
|
});
|
|
12195
|
-
return _context.abrupt("break",
|
|
12196
|
-
case
|
|
12212
|
+
return _context.abrupt("break", 462);
|
|
12213
|
+
case 149:
|
|
12197
12214
|
_channel5 = args.channel, message = args.message;
|
|
12198
12215
|
log.info('channel MESSAGE ... id : ', message.id, ' message: ', message, ' channel.id: ', _channel5.id);
|
|
12199
12216
|
messageToHandle = handleNewMessages ? handleNewMessages(message, _channel5) : message;
|
|
12200
12217
|
_channelFilterTypes = getChannelTypesFilter();
|
|
12201
12218
|
if (!(messageToHandle && _channel5 && (_channelFilterTypes !== null && _channelFilterTypes !== void 0 && _channelFilterTypes.length ? _channelFilterTypes.includes(_channel5.type) : true))) {
|
|
12202
|
-
_context.next =
|
|
12219
|
+
_context.next = 215;
|
|
12203
12220
|
break;
|
|
12204
12221
|
}
|
|
12205
12222
|
_channel5.metadata = isJSON(_channel5.metadata) ? JSON.parse(_channel5.metadata) : _channel5.metadata;
|
|
12206
|
-
_context.next =
|
|
12223
|
+
_context.next = 157;
|
|
12207
12224
|
return effects.call(getActiveChannelId);
|
|
12208
|
-
case
|
|
12225
|
+
case 157:
|
|
12209
12226
|
_activeChannelId5 = _context.sent;
|
|
12210
12227
|
_channelExists6 = checkChannelExists(_channel5.id);
|
|
12211
12228
|
channelForAdd = JSON.parse(JSON.stringify(_channel5));
|
|
12212
|
-
_context.next =
|
|
12229
|
+
_context.next = 162;
|
|
12213
12230
|
return effects.put(addChannelAC(channelForAdd));
|
|
12214
|
-
case
|
|
12231
|
+
case 162:
|
|
12215
12232
|
if (_channelExists6) {
|
|
12216
|
-
_context.next =
|
|
12233
|
+
_context.next = 167;
|
|
12217
12234
|
break;
|
|
12218
12235
|
}
|
|
12219
|
-
_context.next =
|
|
12236
|
+
_context.next = 165;
|
|
12220
12237
|
return effects.call(setChannelInMap, _channel5);
|
|
12221
|
-
case
|
|
12222
|
-
_context.next =
|
|
12238
|
+
case 165:
|
|
12239
|
+
_context.next = 170;
|
|
12223
12240
|
break;
|
|
12224
|
-
case
|
|
12241
|
+
case 167:
|
|
12225
12242
|
if (message.repliedInThread) {
|
|
12226
|
-
_context.next =
|
|
12243
|
+
_context.next = 170;
|
|
12227
12244
|
break;
|
|
12228
12245
|
}
|
|
12229
|
-
_context.next =
|
|
12246
|
+
_context.next = 170;
|
|
12230
12247
|
return effects.put(updateChannelLastMessageAC(message, channelForAdd));
|
|
12231
|
-
case
|
|
12248
|
+
case 170:
|
|
12232
12249
|
if (!(_channel5.id === _activeChannelId5)) {
|
|
12233
|
-
_context.next =
|
|
12250
|
+
_context.next = 182;
|
|
12234
12251
|
break;
|
|
12235
12252
|
}
|
|
12236
12253
|
if (getHasNextCached()) {
|
|
12237
|
-
_context.next =
|
|
12254
|
+
_context.next = 174;
|
|
12238
12255
|
break;
|
|
12239
12256
|
}
|
|
12240
|
-
_context.next =
|
|
12257
|
+
_context.next = 174;
|
|
12241
12258
|
return effects.put(addMessageAC(message));
|
|
12242
|
-
case
|
|
12259
|
+
case 174:
|
|
12243
12260
|
addAllMessages([message], MESSAGE_LOAD_DIRECTION.NEXT);
|
|
12244
|
-
_context.next =
|
|
12261
|
+
_context.next = 178;
|
|
12245
12262
|
return effects.select(messagesHasNextSelector);
|
|
12246
|
-
case
|
|
12263
|
+
case 178:
|
|
12247
12264
|
hasNextMessage = _context.sent;
|
|
12248
12265
|
if (!(!getHasNextCached() && !hasNextMessage)) {
|
|
12249
|
-
_context.next =
|
|
12266
|
+
_context.next = 182;
|
|
12250
12267
|
break;
|
|
12251
12268
|
}
|
|
12252
|
-
_context.next =
|
|
12269
|
+
_context.next = 182;
|
|
12253
12270
|
return effects.put(scrollToNewMessageAC(true, false, true));
|
|
12254
|
-
case
|
|
12271
|
+
case 182:
|
|
12255
12272
|
if (getMessagesFromMap(_channel5.id) && getMessagesFromMap(_channel5.id).length) {
|
|
12256
12273
|
addMessageToMap(_channel5.id, message);
|
|
12257
12274
|
}
|
|
12258
|
-
_context.next =
|
|
12259
|
-
return effects.put(updateChannelDataAC(_channel5.id,
|
|
12275
|
+
_context.next = 185;
|
|
12276
|
+
return effects.put(updateChannelDataAC(_channel5.id, {
|
|
12260
12277
|
userMessageReactions: [],
|
|
12261
12278
|
lastReactedMessage: null
|
|
12262
|
-
}))
|
|
12263
|
-
case
|
|
12279
|
+
}));
|
|
12280
|
+
case 185:
|
|
12264
12281
|
_groupName4 = getChannelGroupName(_channel5);
|
|
12265
|
-
_context.next =
|
|
12266
|
-
return effects.put(updateSearchedChannelDataAC(_channel5.id,
|
|
12282
|
+
_context.next = 188;
|
|
12283
|
+
return effects.put(updateSearchedChannelDataAC(_channel5.id, {
|
|
12267
12284
|
userMessageReactions: [],
|
|
12268
12285
|
lastReactedMessage: null
|
|
12269
|
-
}
|
|
12270
|
-
case
|
|
12286
|
+
}, _groupName4));
|
|
12287
|
+
case 188:
|
|
12271
12288
|
showNotifications = getShowNotifications();
|
|
12272
12289
|
if (!(showNotifications && !message.silent && message.user.id !== SceytChatClient.user.id && !_channel5.muted)) {
|
|
12273
|
-
_context.next =
|
|
12290
|
+
_context.next = 205;
|
|
12274
12291
|
break;
|
|
12275
12292
|
}
|
|
12276
12293
|
if (!(Notification.permission === 'granted')) {
|
|
12277
|
-
_context.next =
|
|
12294
|
+
_context.next = 205;
|
|
12278
12295
|
break;
|
|
12279
12296
|
}
|
|
12280
|
-
_context.next =
|
|
12297
|
+
_context.next = 193;
|
|
12281
12298
|
return effects.select(browserTabIsActiveSelector);
|
|
12282
|
-
case
|
|
12299
|
+
case 193:
|
|
12283
12300
|
tabIsActive = _context.sent;
|
|
12284
12301
|
if (!(document.visibilityState !== 'visible' || !tabIsActive || _channel5.id !== _activeChannelId5)) {
|
|
12285
|
-
_context.next =
|
|
12302
|
+
_context.next = 205;
|
|
12286
12303
|
break;
|
|
12287
12304
|
}
|
|
12288
|
-
_context.next =
|
|
12305
|
+
_context.next = 197;
|
|
12289
12306
|
return effects.select(contactsMapSelector);
|
|
12290
|
-
case
|
|
12307
|
+
case 197:
|
|
12291
12308
|
contactsMap = _context.sent;
|
|
12292
12309
|
_getFromContacts = getShowOnlyContactUsers();
|
|
12293
12310
|
state = store.getState();
|
|
@@ -12307,42 +12324,42 @@ function watchForEvents() {
|
|
|
12307
12324
|
setNotification(messageBody, message.user, _channel5, undefined, message.attachments && message.attachments.length ? message.attachments.find(function (att) {
|
|
12308
12325
|
return att.type !== attachmentTypes.link;
|
|
12309
12326
|
}) : undefined);
|
|
12310
|
-
case
|
|
12327
|
+
case 205:
|
|
12311
12328
|
log.info('send delivered for message . .. . ', message);
|
|
12312
12329
|
if (!(message.repliedInThread && message.parentMessage.id)) {
|
|
12313
|
-
_context.next =
|
|
12330
|
+
_context.next = 211;
|
|
12314
12331
|
break;
|
|
12315
12332
|
}
|
|
12316
|
-
_context.next =
|
|
12333
|
+
_context.next = 209;
|
|
12317
12334
|
return effects.put(markMessagesAsDeliveredAC(message.parentMessage.id, [message.id]));
|
|
12318
|
-
case
|
|
12319
|
-
_context.next =
|
|
12335
|
+
case 209:
|
|
12336
|
+
_context.next = 213;
|
|
12320
12337
|
break;
|
|
12321
|
-
case
|
|
12322
|
-
_context.next =
|
|
12338
|
+
case 211:
|
|
12339
|
+
_context.next = 213;
|
|
12323
12340
|
return effects.put(markMessagesAsDeliveredAC(_channel5.id, [message.id]));
|
|
12324
|
-
case
|
|
12325
|
-
updateChannelOnAllChannels(_channel5.id,
|
|
12341
|
+
case 213:
|
|
12342
|
+
updateChannelOnAllChannels(_channel5.id, {
|
|
12326
12343
|
userMessageReactions: [],
|
|
12327
12344
|
lastReactedMessage: null
|
|
12328
|
-
})
|
|
12345
|
+
});
|
|
12329
12346
|
updateChannelLastMessageOnAllChannels(_channel5.id, _channel5.lastMessage);
|
|
12330
|
-
case
|
|
12331
|
-
return _context.abrupt("break",
|
|
12332
|
-
case
|
|
12347
|
+
case 215:
|
|
12348
|
+
return _context.abrupt("break", 462);
|
|
12349
|
+
case 216:
|
|
12333
12350
|
channelId = args.channelId, markerList = args.markerList;
|
|
12334
|
-
_context.next =
|
|
12351
|
+
_context.next = 219;
|
|
12335
12352
|
return effects.call(getChannelFromMap, channelId);
|
|
12336
|
-
case
|
|
12353
|
+
case 219:
|
|
12337
12354
|
_channel6 = _context.sent;
|
|
12338
12355
|
log.info('channel MESSAGE_MARKERS_RECEIVED ... channel: ', _channel6, 'markers list: ', markerList);
|
|
12339
12356
|
if (!_channel6) {
|
|
12340
|
-
_context.next =
|
|
12357
|
+
_context.next = 238;
|
|
12341
12358
|
break;
|
|
12342
12359
|
}
|
|
12343
|
-
_context.next =
|
|
12360
|
+
_context.next = 224;
|
|
12344
12361
|
return effects.call(getActiveChannelId);
|
|
12345
|
-
case
|
|
12362
|
+
case 224:
|
|
12346
12363
|
_activeChannelId6 = _context.sent;
|
|
12347
12364
|
updateLastMessage = false;
|
|
12348
12365
|
markersMap = {};
|
|
@@ -12360,91 +12377,91 @@ function watchForEvents() {
|
|
|
12360
12377
|
});
|
|
12361
12378
|
});
|
|
12362
12379
|
if (!updateLastMessage) {
|
|
12363
|
-
_context.next =
|
|
12380
|
+
_context.next = 233;
|
|
12364
12381
|
break;
|
|
12365
12382
|
}
|
|
12366
12383
|
lastMessage = _extends({}, _channel6.lastMessage, {
|
|
12367
12384
|
deliveryStatus: markerList.name
|
|
12368
12385
|
});
|
|
12369
12386
|
updateChannelLastMessageOnAllChannels(_channel6.id, lastMessage);
|
|
12370
|
-
_context.next =
|
|
12387
|
+
_context.next = 233;
|
|
12371
12388
|
return effects.put(updateChannelLastMessageStatusAC(lastMessage, JSON.parse(JSON.stringify(_channel6))));
|
|
12372
|
-
case
|
|
12389
|
+
case 233:
|
|
12373
12390
|
if (!(_activeChannelId6 === channelId)) {
|
|
12374
|
-
_context.next =
|
|
12391
|
+
_context.next = 237;
|
|
12375
12392
|
break;
|
|
12376
12393
|
}
|
|
12377
|
-
_context.next =
|
|
12394
|
+
_context.next = 236;
|
|
12378
12395
|
return effects.put(updateMessagesStatusAC(markerList.name, markersMap));
|
|
12379
|
-
case
|
|
12396
|
+
case 236:
|
|
12380
12397
|
updateMarkersOnAllMessages(markersMap, markerList.name);
|
|
12381
|
-
case
|
|
12398
|
+
case 237:
|
|
12382
12399
|
updateMessageStatusOnMap(_channel6.id, {
|
|
12383
12400
|
name: markerList.name,
|
|
12384
12401
|
markersMap: markersMap
|
|
12385
12402
|
});
|
|
12386
|
-
case
|
|
12387
|
-
return _context.abrupt("break",
|
|
12388
|
-
case
|
|
12403
|
+
case 238:
|
|
12404
|
+
return _context.abrupt("break", 462);
|
|
12405
|
+
case 239:
|
|
12389
12406
|
_channelId = args.channelId;
|
|
12390
12407
|
log.info('channel DELETE ... ');
|
|
12391
12408
|
_channel7 = getChannelFromMap(_channelId);
|
|
12392
|
-
_context.next =
|
|
12409
|
+
_context.next = 244;
|
|
12393
12410
|
return effects.put(setChannelToRemoveAC(_channel7));
|
|
12394
|
-
case
|
|
12411
|
+
case 244:
|
|
12395
12412
|
deleteChannelFromAllChannels(_channelId);
|
|
12396
|
-
return _context.abrupt("break",
|
|
12397
|
-
case
|
|
12413
|
+
return _context.abrupt("break", 462);
|
|
12414
|
+
case 246:
|
|
12398
12415
|
_channel8 = args.channel, deletedMessage = args.deletedMessage;
|
|
12399
12416
|
_activeChannelId7 = getActiveChannelId();
|
|
12400
12417
|
log.info('channel DELETE_MESSAGE ... ');
|
|
12401
12418
|
_channelExists7 = checkChannelExists(_channel8.id);
|
|
12402
12419
|
if (!(_channel8.id === _activeChannelId7)) {
|
|
12403
|
-
_context.next =
|
|
12420
|
+
_context.next = 254;
|
|
12404
12421
|
break;
|
|
12405
12422
|
}
|
|
12406
12423
|
updateMessageOnAllMessages(deletedMessage.id, deletedMessage);
|
|
12407
|
-
_context.next =
|
|
12424
|
+
_context.next = 254;
|
|
12408
12425
|
return effects.put(updateMessageAC(deletedMessage.id, deletedMessage));
|
|
12409
|
-
case
|
|
12426
|
+
case 254:
|
|
12410
12427
|
updateMessageOnMap(_channel8.id, {
|
|
12411
12428
|
messageId: deletedMessage.id,
|
|
12412
12429
|
params: deletedMessage
|
|
12413
12430
|
});
|
|
12414
12431
|
if (!_channelExists7) {
|
|
12415
|
-
_context.next =
|
|
12432
|
+
_context.next = 261;
|
|
12416
12433
|
break;
|
|
12417
12434
|
}
|
|
12418
|
-
_context.next =
|
|
12435
|
+
_context.next = 258;
|
|
12419
12436
|
return effects.put(updateChannelDataAC(_channel8.id, {
|
|
12420
12437
|
newMessageCount: _channel8.newMessageCount,
|
|
12421
12438
|
muted: _channel8.muted,
|
|
12422
12439
|
mutedTill: _channel8.mutedTill
|
|
12423
12440
|
}));
|
|
12424
|
-
case
|
|
12441
|
+
case 258:
|
|
12425
12442
|
if (!(_channel8.lastMessage.id === deletedMessage.id)) {
|
|
12426
|
-
_context.next =
|
|
12443
|
+
_context.next = 261;
|
|
12427
12444
|
break;
|
|
12428
12445
|
}
|
|
12429
|
-
_context.next =
|
|
12446
|
+
_context.next = 261;
|
|
12430
12447
|
return effects.put(updateChannelLastMessageAC(deletedMessage, _channel8));
|
|
12431
|
-
case
|
|
12448
|
+
case 261:
|
|
12432
12449
|
updateChannelOnAllChannels(_channel8.id, {
|
|
12433
12450
|
newMessageCount: _channel8.newMessageCount,
|
|
12434
12451
|
muted: _channel8.muted,
|
|
12435
12452
|
mutedTill: _channel8.mutedTill
|
|
12436
12453
|
}, deletedMessage);
|
|
12437
|
-
return _context.abrupt("break",
|
|
12438
|
-
case
|
|
12454
|
+
return _context.abrupt("break", 462);
|
|
12455
|
+
case 263:
|
|
12439
12456
|
_channel9 = args.channel, _message = args.message;
|
|
12440
12457
|
log.info('channel EDIT_MESSAGE ... ', _message);
|
|
12441
12458
|
_activeChannelId8 = getActiveChannelId();
|
|
12442
12459
|
_channelExists8 = checkChannelExists(_channel9.id);
|
|
12443
12460
|
if (!(_channel9.id === _activeChannelId8)) {
|
|
12444
|
-
_context.next =
|
|
12461
|
+
_context.next = 271;
|
|
12445
12462
|
break;
|
|
12446
12463
|
}
|
|
12447
|
-
_context.next =
|
|
12464
|
+
_context.next = 270;
|
|
12448
12465
|
return effects.put(updateMessageAC(_message.id, {
|
|
12449
12466
|
body: _message.body,
|
|
12450
12467
|
state: _message.state,
|
|
@@ -12453,7 +12470,7 @@ function watchForEvents() {
|
|
|
12453
12470
|
mentionedUsers: _message.mentionedUsers,
|
|
12454
12471
|
updatedAt: _message.updatedAt
|
|
12455
12472
|
}));
|
|
12456
|
-
case
|
|
12473
|
+
case 270:
|
|
12457
12474
|
updateMessageOnAllMessages(_message.id, {
|
|
12458
12475
|
body: _message.body,
|
|
12459
12476
|
state: _message.state,
|
|
@@ -12462,18 +12479,18 @@ function watchForEvents() {
|
|
|
12462
12479
|
mentionedUsers: _message.mentionedUsers,
|
|
12463
12480
|
updatedAt: _message.updatedAt
|
|
12464
12481
|
});
|
|
12465
|
-
case
|
|
12482
|
+
case 271:
|
|
12466
12483
|
if (!_channelExists8) {
|
|
12467
|
-
_context.next =
|
|
12484
|
+
_context.next = 275;
|
|
12468
12485
|
break;
|
|
12469
12486
|
}
|
|
12470
12487
|
if (!(_channel9.lastMessage.id === _message.id)) {
|
|
12471
|
-
_context.next =
|
|
12488
|
+
_context.next = 275;
|
|
12472
12489
|
break;
|
|
12473
12490
|
}
|
|
12474
|
-
_context.next =
|
|
12491
|
+
_context.next = 275;
|
|
12475
12492
|
return effects.put(updateChannelLastMessageAC(_message, _channel9));
|
|
12476
|
-
case
|
|
12493
|
+
case 275:
|
|
12477
12494
|
if (checkChannelExistsOnMessagesMap(_channel9.id)) {
|
|
12478
12495
|
updateMessageOnMap(_channel9.id, {
|
|
12479
12496
|
messageId: _message.id,
|
|
@@ -12481,36 +12498,36 @@ function watchForEvents() {
|
|
|
12481
12498
|
});
|
|
12482
12499
|
}
|
|
12483
12500
|
updateChannelOnAllChannels(_channel9.id, {}, _message);
|
|
12484
|
-
return _context.abrupt("break",
|
|
12485
|
-
case
|
|
12501
|
+
return _context.abrupt("break", 462);
|
|
12502
|
+
case 278:
|
|
12486
12503
|
_channel0 = args.channel, user = args.user, _message2 = args.message, reaction = args.reaction;
|
|
12487
12504
|
log.info('channel REACTION_ADDED ... ', args);
|
|
12488
12505
|
isSelf = user.id === SceytChatClient.user.id;
|
|
12489
12506
|
_activeChannelId9 = getActiveChannelId();
|
|
12490
12507
|
if (!(_channel0.id === _activeChannelId9)) {
|
|
12491
|
-
_context.next =
|
|
12508
|
+
_context.next = 286;
|
|
12492
12509
|
break;
|
|
12493
12510
|
}
|
|
12494
|
-
_context.next =
|
|
12511
|
+
_context.next = 285;
|
|
12495
12512
|
return effects.put(addReactionToMessageAC(_message2, reaction, isSelf));
|
|
12496
|
-
case
|
|
12513
|
+
case 285:
|
|
12497
12514
|
addReactionOnAllMessages(_message2, reaction, true);
|
|
12498
|
-
case
|
|
12515
|
+
case 286:
|
|
12499
12516
|
if (!(_message2.user.id === SceytChatClient.user.id)) {
|
|
12500
|
-
_context.next =
|
|
12517
|
+
_context.next = 304;
|
|
12501
12518
|
break;
|
|
12502
12519
|
}
|
|
12503
12520
|
if (!(!isSelf && Notification.permission === 'granted')) {
|
|
12504
|
-
_context.next =
|
|
12521
|
+
_context.next = 299;
|
|
12505
12522
|
break;
|
|
12506
12523
|
}
|
|
12507
12524
|
if (!(document.visibilityState !== 'visible' || _channel0.id !== _activeChannelId9)) {
|
|
12508
|
-
_context.next =
|
|
12525
|
+
_context.next = 299;
|
|
12509
12526
|
break;
|
|
12510
12527
|
}
|
|
12511
|
-
_context.next =
|
|
12528
|
+
_context.next = 291;
|
|
12512
12529
|
return effects.select(contactsMapSelector);
|
|
12513
|
-
case
|
|
12530
|
+
case 291:
|
|
12514
12531
|
_contactsMap = _context.sent;
|
|
12515
12532
|
_getFromContacts2 = getShowOnlyContactUsers();
|
|
12516
12533
|
_state = store.getState();
|
|
@@ -12530,9 +12547,9 @@ function watchForEvents() {
|
|
|
12530
12547
|
setNotification(_messageBody, reaction.user, _channel0, reaction.key, _message2.attachments && _message2.attachments.length ? _message2.attachments.find(function (att) {
|
|
12531
12548
|
return att.type !== attachmentTypes.link;
|
|
12532
12549
|
}) : undefined);
|
|
12533
|
-
case
|
|
12550
|
+
case 299:
|
|
12534
12551
|
if (!(_channel0.newReactions && _channel0.newReactions.length)) {
|
|
12535
|
-
_context.next =
|
|
12552
|
+
_context.next = 303;
|
|
12536
12553
|
break;
|
|
12537
12554
|
}
|
|
12538
12555
|
channelUpdateParams = {
|
|
@@ -12542,9 +12559,9 @@ function watchForEvents() {
|
|
|
12542
12559
|
muted: _channel0.muted,
|
|
12543
12560
|
mutedTill: _channel0.mutedTill
|
|
12544
12561
|
};
|
|
12545
|
-
_context.next =
|
|
12562
|
+
_context.next = 303;
|
|
12546
12563
|
return effects.put(updateChannelDataAC(_channel0.id, channelUpdateParams));
|
|
12547
|
-
case
|
|
12564
|
+
case 303:
|
|
12548
12565
|
updateChannelOnAllChannels(_channel0.id, {
|
|
12549
12566
|
userMessageReactions: _channel0.newReactions,
|
|
12550
12567
|
lastReactedMessage: _message2,
|
|
@@ -12552,77 +12569,77 @@ function watchForEvents() {
|
|
|
12552
12569
|
muted: _channel0.muted,
|
|
12553
12570
|
mutedTill: _channel0.mutedTill
|
|
12554
12571
|
});
|
|
12555
|
-
case
|
|
12572
|
+
case 304:
|
|
12556
12573
|
if (checkChannelExistsOnMessagesMap(_channel0.id)) {
|
|
12557
12574
|
addReactionToMessageOnMap(_channel0.id, _message2, reaction, true);
|
|
12558
12575
|
}
|
|
12559
|
-
return _context.abrupt("break",
|
|
12560
|
-
case
|
|
12576
|
+
return _context.abrupt("break", 462);
|
|
12577
|
+
case 306:
|
|
12561
12578
|
_channel1 = args.channel, _user = args.user, _message3 = args.message, _reaction = args.reaction;
|
|
12562
12579
|
log.info('channel REACTION_DELETED ... ', _channel1);
|
|
12563
12580
|
channelFromMap = getChannelFromMap(_channel1.id);
|
|
12564
12581
|
_isSelf = _user.id === SceytChatClient.user.id;
|
|
12565
12582
|
_activeChannelId0 = getActiveChannelId();
|
|
12566
12583
|
if (!(_channel1.id === _activeChannelId0)) {
|
|
12567
|
-
_context.next =
|
|
12584
|
+
_context.next = 315;
|
|
12568
12585
|
break;
|
|
12569
12586
|
}
|
|
12570
|
-
_context.next =
|
|
12587
|
+
_context.next = 314;
|
|
12571
12588
|
return effects.put(deleteReactionFromMessageAC(_message3, _reaction, _isSelf));
|
|
12572
|
-
case
|
|
12589
|
+
case 314:
|
|
12573
12590
|
removeReactionOnAllMessages(_message3, _reaction, true);
|
|
12574
|
-
case
|
|
12591
|
+
case 315:
|
|
12575
12592
|
_channelUpdateParams = JSON.parse(JSON.stringify(_channel1));
|
|
12576
12593
|
if (channelFromMap && channelFromMap.lastReactedMessage && channelFromMap.lastReactedMessage.id === _message3.id) {
|
|
12577
12594
|
_channelUpdateParams.lastReactedMessage = null;
|
|
12578
12595
|
}
|
|
12579
|
-
_context.next =
|
|
12596
|
+
_context.next = 319;
|
|
12580
12597
|
return effects.put(updateChannelDataAC(_channel1.id, _channelUpdateParams));
|
|
12581
|
-
case
|
|
12598
|
+
case 319:
|
|
12582
12599
|
updateChannelOnAllChannels(_channel1.id, _channelUpdateParams);
|
|
12583
12600
|
if (checkChannelExistsOnMessagesMap(_channel1.id)) {
|
|
12584
12601
|
removeReactionToMessageOnMap(_channel1.id, _message3, _reaction, true);
|
|
12585
12602
|
}
|
|
12586
|
-
return _context.abrupt("break",
|
|
12587
|
-
case
|
|
12603
|
+
return _context.abrupt("break", 462);
|
|
12604
|
+
case 322:
|
|
12588
12605
|
_channel10 = args.channel;
|
|
12589
12606
|
if (!_channel10) {
|
|
12590
|
-
_context.next =
|
|
12607
|
+
_context.next = 328;
|
|
12591
12608
|
break;
|
|
12592
12609
|
}
|
|
12593
12610
|
_updatedChannel = JSON.parse(JSON.stringify(_channel10));
|
|
12594
|
-
_context.next =
|
|
12611
|
+
_context.next = 327;
|
|
12595
12612
|
return effects.put(updateChannelDataAC(_channel10.id, _updatedChannel));
|
|
12596
|
-
case
|
|
12613
|
+
case 327:
|
|
12597
12614
|
updateChannelOnAllChannels(_channel10.id, _updatedChannel);
|
|
12598
|
-
case
|
|
12599
|
-
return _context.abrupt("break",
|
|
12600
|
-
case
|
|
12615
|
+
case 328:
|
|
12616
|
+
return _context.abrupt("break", 462);
|
|
12617
|
+
case 329:
|
|
12601
12618
|
_channel11 = args.channel;
|
|
12602
12619
|
log.info('CLEAR_HISTORY: ', _channel11);
|
|
12603
|
-
_context.next =
|
|
12620
|
+
_context.next = 333;
|
|
12604
12621
|
return effects.call(getActiveChannelId);
|
|
12605
|
-
case
|
|
12622
|
+
case 333:
|
|
12606
12623
|
_activeChannelId1 = _context.sent;
|
|
12607
|
-
_context.next =
|
|
12624
|
+
_context.next = 336;
|
|
12608
12625
|
return effects.call(checkChannelExists, _channel11.id);
|
|
12609
|
-
case
|
|
12626
|
+
case 336:
|
|
12610
12627
|
channelExist = _context.sent;
|
|
12611
12628
|
if (!(_channel11.id === _activeChannelId1)) {
|
|
12612
|
-
_context.next =
|
|
12629
|
+
_context.next = 341;
|
|
12613
12630
|
break;
|
|
12614
12631
|
}
|
|
12615
|
-
_context.next =
|
|
12632
|
+
_context.next = 340;
|
|
12616
12633
|
return effects.put(clearMessagesAC());
|
|
12617
|
-
case
|
|
12634
|
+
case 340:
|
|
12618
12635
|
removeAllMessages();
|
|
12619
|
-
case
|
|
12636
|
+
case 341:
|
|
12620
12637
|
removeMessagesFromMap(_channel11.id);
|
|
12621
12638
|
if (!channelExist) {
|
|
12622
|
-
_context.next =
|
|
12639
|
+
_context.next = 345;
|
|
12623
12640
|
break;
|
|
12624
12641
|
}
|
|
12625
|
-
_context.next =
|
|
12642
|
+
_context.next = 345;
|
|
12626
12643
|
return effects.put(updateChannelDataAC(_channel11.id, {
|
|
12627
12644
|
lastMessage: null,
|
|
12628
12645
|
newMessageCount: 0,
|
|
@@ -12630,7 +12647,7 @@ function watchForEvents() {
|
|
|
12630
12647
|
muted: _channel11.muted,
|
|
12631
12648
|
mutedTill: _channel11.mutedTill
|
|
12632
12649
|
}));
|
|
12633
|
-
case
|
|
12650
|
+
case 345:
|
|
12634
12651
|
updateChannelOnAllChannels(_channel11.id, {
|
|
12635
12652
|
lastMessage: null,
|
|
12636
12653
|
newMessageCount: 0,
|
|
@@ -12638,173 +12655,173 @@ function watchForEvents() {
|
|
|
12638
12655
|
muted: _channel11.muted,
|
|
12639
12656
|
mutedTill: _channel11.mutedTill
|
|
12640
12657
|
});
|
|
12641
|
-
return _context.abrupt("break",
|
|
12642
|
-
case
|
|
12658
|
+
return _context.abrupt("break", 462);
|
|
12659
|
+
case 347:
|
|
12643
12660
|
_channel12 = args.channel;
|
|
12644
12661
|
log.info('channel MUTE ... ');
|
|
12645
|
-
_context.next =
|
|
12662
|
+
_context.next = 351;
|
|
12646
12663
|
return effects.put(updateChannelDataAC(_channel12.id, {
|
|
12647
12664
|
muted: _channel12.muted,
|
|
12648
12665
|
mutedTill: _channel12.mutedTill
|
|
12649
12666
|
}));
|
|
12650
|
-
case
|
|
12667
|
+
case 351:
|
|
12651
12668
|
updateChannelOnAllChannels(_channel12.id, {
|
|
12652
12669
|
muted: _channel12.muted,
|
|
12653
12670
|
mutedTill: _channel12.mutedTill
|
|
12654
12671
|
});
|
|
12655
|
-
return _context.abrupt("break",
|
|
12656
|
-
case
|
|
12672
|
+
return _context.abrupt("break", 462);
|
|
12673
|
+
case 353:
|
|
12657
12674
|
_channel13 = args.channel;
|
|
12658
12675
|
log.info('channel UNMUTE ... ');
|
|
12659
|
-
_context.next =
|
|
12676
|
+
_context.next = 357;
|
|
12660
12677
|
return effects.put(updateChannelDataAC(_channel13.id, {
|
|
12661
12678
|
muted: _channel13.muted,
|
|
12662
12679
|
mutedTill: _channel13.mutedTill
|
|
12663
12680
|
}));
|
|
12664
|
-
case
|
|
12681
|
+
case 357:
|
|
12665
12682
|
updateChannelOnAllChannels(_channel13.id, {
|
|
12666
12683
|
muted: _channel13.muted,
|
|
12667
12684
|
mutedTill: _channel13.mutedTill
|
|
12668
12685
|
});
|
|
12669
|
-
return _context.abrupt("break",
|
|
12670
|
-
case
|
|
12686
|
+
return _context.abrupt("break", 462);
|
|
12687
|
+
case 359:
|
|
12671
12688
|
_channel14 = args.channel;
|
|
12672
12689
|
log.info('channel PINED ... ');
|
|
12673
|
-
_context.next =
|
|
12690
|
+
_context.next = 363;
|
|
12674
12691
|
return effects.put(updateChannelDataAC(_channel14.id, {
|
|
12675
12692
|
pinnedAt: _channel14.pinnedAt
|
|
12676
12693
|
}, true));
|
|
12677
|
-
case
|
|
12694
|
+
case 363:
|
|
12678
12695
|
updateChannelOnAllChannels(_channel14.id, {
|
|
12679
12696
|
pinnedAt: _channel14.pinnedAt
|
|
12680
12697
|
});
|
|
12681
|
-
return _context.abrupt("break",
|
|
12682
|
-
case
|
|
12698
|
+
return _context.abrupt("break", 462);
|
|
12699
|
+
case 365:
|
|
12683
12700
|
_channel15 = args.channel;
|
|
12684
12701
|
log.info('channel UNPINED ... ');
|
|
12685
|
-
_context.next =
|
|
12702
|
+
_context.next = 369;
|
|
12686
12703
|
return effects.put(updateChannelDataAC(_channel15.id, {
|
|
12687
12704
|
pinnedAt: _channel15.pinnedAt
|
|
12688
12705
|
}, false, true));
|
|
12689
|
-
case
|
|
12706
|
+
case 369:
|
|
12690
12707
|
updateChannelOnAllChannels(_channel15.id, {
|
|
12691
12708
|
pinnedAt: _channel15.pinnedAt
|
|
12692
12709
|
});
|
|
12693
|
-
return _context.abrupt("break",
|
|
12694
|
-
case
|
|
12710
|
+
return _context.abrupt("break", 462);
|
|
12711
|
+
case 371:
|
|
12695
12712
|
_channel16 = args.channel;
|
|
12696
12713
|
log.info('channel HIDE ... ');
|
|
12697
|
-
_context.next =
|
|
12714
|
+
_context.next = 375;
|
|
12698
12715
|
return effects.put(setChannelToHideAC(_channel16));
|
|
12699
|
-
case
|
|
12700
|
-
return _context.abrupt("break",
|
|
12701
|
-
case
|
|
12716
|
+
case 375:
|
|
12717
|
+
return _context.abrupt("break", 462);
|
|
12718
|
+
case 376:
|
|
12702
12719
|
_channel17 = args.channel;
|
|
12703
12720
|
log.info('channel UNHIDE ... ');
|
|
12704
|
-
_context.next =
|
|
12721
|
+
_context.next = 380;
|
|
12705
12722
|
return effects.put(setChannelToUnHideAC(_channel17));
|
|
12706
|
-
case
|
|
12707
|
-
return _context.abrupt("break",
|
|
12708
|
-
case
|
|
12723
|
+
case 380:
|
|
12724
|
+
return _context.abrupt("break", 462);
|
|
12725
|
+
case 381:
|
|
12709
12726
|
_channel18 = args.channel;
|
|
12710
|
-
_context.next =
|
|
12727
|
+
_context.next = 384;
|
|
12711
12728
|
return effects.put(updateChannelDataAC(_channel18.id, {
|
|
12712
12729
|
unread: _channel18.unread,
|
|
12713
12730
|
muted: _channel18.muted,
|
|
12714
12731
|
mutedTill: _channel18.mutedTill
|
|
12715
12732
|
}));
|
|
12716
|
-
case
|
|
12733
|
+
case 384:
|
|
12717
12734
|
_groupName5 = getChannelGroupName(_channel18);
|
|
12718
|
-
_context.next =
|
|
12735
|
+
_context.next = 387;
|
|
12719
12736
|
return effects.put(updateSearchedChannelDataAC(_channel18.id, {
|
|
12720
12737
|
unread: _channel18.unread
|
|
12721
12738
|
}, _groupName5));
|
|
12722
|
-
case
|
|
12739
|
+
case 387:
|
|
12723
12740
|
updateChannelOnAllChannels(_channel18.id, {
|
|
12724
12741
|
unread: _channel18.unread
|
|
12725
12742
|
});
|
|
12726
|
-
return _context.abrupt("break",
|
|
12727
|
-
case
|
|
12743
|
+
return _context.abrupt("break", 462);
|
|
12744
|
+
case 389:
|
|
12728
12745
|
_channel19 = args.channel;
|
|
12729
|
-
_context.next =
|
|
12746
|
+
_context.next = 392;
|
|
12730
12747
|
return effects.put(updateChannelDataAC(_channel19.id, {
|
|
12731
12748
|
unread: _channel19.unread,
|
|
12732
12749
|
muted: _channel19.muted,
|
|
12733
12750
|
mutedTill: _channel19.mutedTill
|
|
12734
12751
|
}));
|
|
12735
|
-
case
|
|
12752
|
+
case 392:
|
|
12736
12753
|
_groupName6 = getChannelGroupName(_channel19);
|
|
12737
|
-
_context.next =
|
|
12754
|
+
_context.next = 395;
|
|
12738
12755
|
return effects.put(updateSearchedChannelDataAC(_channel19.id, {
|
|
12739
12756
|
unread: _channel19.unread
|
|
12740
12757
|
}, _groupName6));
|
|
12741
|
-
case
|
|
12758
|
+
case 395:
|
|
12742
12759
|
updateChannelOnAllChannels(_channel19.id, {
|
|
12743
12760
|
unread: _channel19.unread
|
|
12744
12761
|
});
|
|
12745
|
-
return _context.abrupt("break",
|
|
12746
|
-
case
|
|
12762
|
+
return _context.abrupt("break", 462);
|
|
12763
|
+
case 397:
|
|
12747
12764
|
_channel20 = args.channel, members = args.members;
|
|
12748
12765
|
log.info('channel CHANGE_ROLE channel ... ', _channel20);
|
|
12749
12766
|
log.info('channel CHANGE_ROLE member ... ', members);
|
|
12750
|
-
_context.next =
|
|
12767
|
+
_context.next = 402;
|
|
12751
12768
|
return effects.call(getActiveChannelId);
|
|
12752
|
-
case
|
|
12769
|
+
case 402:
|
|
12753
12770
|
_activeChannelId10 = _context.sent;
|
|
12754
12771
|
if (!(_channel20.id === _activeChannelId10)) {
|
|
12755
|
-
_context.next =
|
|
12772
|
+
_context.next = 406;
|
|
12756
12773
|
break;
|
|
12757
12774
|
}
|
|
12758
|
-
_context.next =
|
|
12775
|
+
_context.next = 406;
|
|
12759
12776
|
return effects.put(updateMembersAC(members));
|
|
12760
|
-
case
|
|
12777
|
+
case 406:
|
|
12761
12778
|
i = 0;
|
|
12762
|
-
case
|
|
12779
|
+
case 407:
|
|
12763
12780
|
if (!(i < members.length)) {
|
|
12764
|
-
_context.next =
|
|
12781
|
+
_context.next = 415;
|
|
12765
12782
|
break;
|
|
12766
12783
|
}
|
|
12767
12784
|
if (!(members[i].id === SceytChatClient.user.id)) {
|
|
12768
|
-
_context.next =
|
|
12785
|
+
_context.next = 412;
|
|
12769
12786
|
break;
|
|
12770
12787
|
}
|
|
12771
|
-
_context.next =
|
|
12788
|
+
_context.next = 411;
|
|
12772
12789
|
return effects.put(updateChannelDataAC(_channel20.id, {
|
|
12773
12790
|
userRole: members[i].role,
|
|
12774
12791
|
muted: _channel20.muted,
|
|
12775
12792
|
mutedTill: _channel20.mutedTill
|
|
12776
12793
|
}));
|
|
12777
|
-
case
|
|
12794
|
+
case 411:
|
|
12778
12795
|
updateChannelOnAllChannels(_channel20.id, {
|
|
12779
12796
|
userRole: members[i].role,
|
|
12780
12797
|
muted: _channel20.muted,
|
|
12781
12798
|
mutedTill: _channel20.mutedTill
|
|
12782
12799
|
});
|
|
12783
|
-
case
|
|
12800
|
+
case 412:
|
|
12784
12801
|
i++;
|
|
12785
|
-
_context.next =
|
|
12802
|
+
_context.next = 407;
|
|
12786
12803
|
break;
|
|
12787
|
-
case
|
|
12788
|
-
return _context.abrupt("break",
|
|
12789
|
-
case
|
|
12804
|
+
case 415:
|
|
12805
|
+
return _context.abrupt("break", 462);
|
|
12806
|
+
case 416:
|
|
12790
12807
|
_channel21 = args.channel;
|
|
12791
12808
|
log.info('channel frozen channel ... ', _channel21);
|
|
12792
|
-
return _context.abrupt("break",
|
|
12793
|
-
case
|
|
12809
|
+
return _context.abrupt("break", 462);
|
|
12810
|
+
case 419:
|
|
12794
12811
|
_channel22 = args.channel;
|
|
12795
12812
|
log.info('channel unfrozen channel ... ', _channel22);
|
|
12796
|
-
return _context.abrupt("break",
|
|
12797
|
-
case
|
|
12813
|
+
return _context.abrupt("break", 462);
|
|
12814
|
+
case 422:
|
|
12798
12815
|
_channelId2 = args.channelId, from = args.from, name = args.name;
|
|
12799
12816
|
log.info('channel event received >>>... . . . . . ', args);
|
|
12800
12817
|
if (!(from.id === SceytChatClient.user.id)) {
|
|
12801
|
-
_context.next =
|
|
12818
|
+
_context.next = 426;
|
|
12802
12819
|
break;
|
|
12803
12820
|
}
|
|
12804
|
-
return _context.abrupt("break",
|
|
12805
|
-
case
|
|
12821
|
+
return _context.abrupt("break", 462);
|
|
12822
|
+
case 426:
|
|
12806
12823
|
if (!(name === 'start_typing')) {
|
|
12807
|
-
_context.next =
|
|
12824
|
+
_context.next = 434;
|
|
12808
12825
|
break;
|
|
12809
12826
|
}
|
|
12810
12827
|
if (!usersTimeout[_channelId2]) {
|
|
@@ -12816,27 +12833,27 @@ function watchForEvents() {
|
|
|
12816
12833
|
usersTimeout[_channelId2][from.id] = setTimeout(function () {
|
|
12817
12834
|
channelListener.onReceivedChannelEvent(_channelId2, from, 'stop_typing');
|
|
12818
12835
|
}, 5000);
|
|
12819
|
-
_context.next =
|
|
12836
|
+
_context.next = 432;
|
|
12820
12837
|
return effects.put(switchTypingIndicatorAC(true, _channelId2, from));
|
|
12821
|
-
case
|
|
12822
|
-
_context.next =
|
|
12838
|
+
case 432:
|
|
12839
|
+
_context.next = 452;
|
|
12823
12840
|
break;
|
|
12824
|
-
case
|
|
12841
|
+
case 434:
|
|
12825
12842
|
if (!(name === 'stop_typing')) {
|
|
12826
|
-
_context.next =
|
|
12843
|
+
_context.next = 440;
|
|
12827
12844
|
break;
|
|
12828
12845
|
}
|
|
12829
12846
|
if (usersTimeout[_channelId2] && usersTimeout[_channelId2][from.id]) {
|
|
12830
12847
|
clearTimeout(usersTimeout[_channelId2][from.id]);
|
|
12831
12848
|
}
|
|
12832
|
-
_context.next =
|
|
12849
|
+
_context.next = 438;
|
|
12833
12850
|
return effects.put(switchTypingIndicatorAC(false, _channelId2, from));
|
|
12834
|
-
case
|
|
12835
|
-
_context.next =
|
|
12851
|
+
case 438:
|
|
12852
|
+
_context.next = 452;
|
|
12836
12853
|
break;
|
|
12837
|
-
case
|
|
12854
|
+
case 440:
|
|
12838
12855
|
if (!(name === 'start_recording')) {
|
|
12839
|
-
_context.next =
|
|
12856
|
+
_context.next = 448;
|
|
12840
12857
|
break;
|
|
12841
12858
|
}
|
|
12842
12859
|
if (!usersTimeout[_channelId2]) {
|
|
@@ -12848,40 +12865,40 @@ function watchForEvents() {
|
|
|
12848
12865
|
usersTimeout[_channelId2][from.id] = setTimeout(function () {
|
|
12849
12866
|
channelListener.onReceivedChannelEvent(_channelId2, from, 'stop_recording');
|
|
12850
12867
|
}, 5000);
|
|
12851
|
-
_context.next =
|
|
12868
|
+
_context.next = 446;
|
|
12852
12869
|
return effects.put(switchRecordingIndicatorAC(true, _channelId2, from));
|
|
12853
|
-
case
|
|
12854
|
-
_context.next =
|
|
12870
|
+
case 446:
|
|
12871
|
+
_context.next = 452;
|
|
12855
12872
|
break;
|
|
12856
|
-
case
|
|
12873
|
+
case 448:
|
|
12857
12874
|
if (!(name === 'stop_recording')) {
|
|
12858
|
-
_context.next =
|
|
12875
|
+
_context.next = 452;
|
|
12859
12876
|
break;
|
|
12860
12877
|
}
|
|
12861
12878
|
if (usersTimeout[_channelId2] && usersTimeout[_channelId2][from.id]) {
|
|
12862
12879
|
clearTimeout(usersTimeout[_channelId2][from.id]);
|
|
12863
12880
|
}
|
|
12864
|
-
_context.next =
|
|
12881
|
+
_context.next = 452;
|
|
12865
12882
|
return effects.put(switchRecordingIndicatorAC(false, _channelId2, from));
|
|
12866
|
-
case
|
|
12867
|
-
return _context.abrupt("break",
|
|
12868
|
-
case
|
|
12883
|
+
case 452:
|
|
12884
|
+
return _context.abrupt("break", 462);
|
|
12885
|
+
case 453:
|
|
12869
12886
|
status = args.status;
|
|
12870
12887
|
log.info('connection status changed . . . . . ', status);
|
|
12871
|
-
_context.next =
|
|
12888
|
+
_context.next = 457;
|
|
12872
12889
|
return effects.put(setConnectionStatusAC(status));
|
|
12873
|
-
case
|
|
12890
|
+
case 457:
|
|
12874
12891
|
if (!(status === CONNECTION_STATUS.CONNECTED)) {
|
|
12875
|
-
_context.next =
|
|
12892
|
+
_context.next = 460;
|
|
12876
12893
|
break;
|
|
12877
12894
|
}
|
|
12878
|
-
_context.next =
|
|
12895
|
+
_context.next = 460;
|
|
12879
12896
|
return effects.put(getRolesAC());
|
|
12880
|
-
case
|
|
12881
|
-
return _context.abrupt("break",
|
|
12882
|
-
case
|
|
12897
|
+
case 460:
|
|
12898
|
+
return _context.abrupt("break", 462);
|
|
12899
|
+
case 461:
|
|
12883
12900
|
log.warn('UNHANDLED EVENT FROM REDUX-SAGA EVENT-CHANNEL');
|
|
12884
|
-
case
|
|
12901
|
+
case 462:
|
|
12885
12902
|
case "end":
|
|
12886
12903
|
return _context.stop();
|
|
12887
12904
|
}
|
|
@@ -17803,47 +17820,52 @@ function getMembers(action) {
|
|
|
17803
17820
|
}, _marked$4, null, [[0, 22]]);
|
|
17804
17821
|
}
|
|
17805
17822
|
function loadMoreMembers(action) {
|
|
17806
|
-
var payload, limit, membersQuery, _yield$call2, members;
|
|
17823
|
+
var payload, limit, channelId, membersQuery, _yield$call2, members, updateChannelData;
|
|
17807
17824
|
return _regeneratorRuntime().wrap(function loadMoreMembers$(_context2) {
|
|
17808
17825
|
while (1) switch (_context2.prev = _context2.next) {
|
|
17809
17826
|
case 0:
|
|
17810
17827
|
_context2.prev = 0;
|
|
17811
17828
|
payload = action.payload;
|
|
17812
17829
|
limit = payload.limit;
|
|
17830
|
+
channelId = payload.channelId;
|
|
17813
17831
|
membersQuery = query.membersQuery;
|
|
17814
17832
|
if (limit && membersQuery) {
|
|
17815
17833
|
membersQuery.limit = limit;
|
|
17816
17834
|
}
|
|
17817
|
-
_context2.next =
|
|
17835
|
+
_context2.next = 8;
|
|
17818
17836
|
return effects.put(setMembersLoadingStateAC(LOADING_STATE.LOADING));
|
|
17819
|
-
case
|
|
17820
|
-
_context2.next =
|
|
17837
|
+
case 8:
|
|
17838
|
+
_context2.next = 10;
|
|
17821
17839
|
return effects.call(membersQuery.loadNextPage);
|
|
17822
|
-
case
|
|
17840
|
+
case 10:
|
|
17823
17841
|
_yield$call2 = _context2.sent;
|
|
17824
17842
|
members = _yield$call2.members;
|
|
17825
|
-
_context2.next =
|
|
17843
|
+
_context2.next = 14;
|
|
17826
17844
|
return effects.put(addMembersToListAC(members));
|
|
17827
|
-
case
|
|
17828
|
-
_context2.next =
|
|
17845
|
+
case 14:
|
|
17846
|
+
_context2.next = 16;
|
|
17829
17847
|
return effects.put(setMembersLoadingStateAC(LOADING_STATE.LOADED));
|
|
17830
|
-
case
|
|
17831
|
-
_context2.next =
|
|
17832
|
-
return updateActiveChannelMembersAdd
|
|
17833
|
-
case
|
|
17834
|
-
|
|
17848
|
+
case 16:
|
|
17849
|
+
_context2.next = 18;
|
|
17850
|
+
return effects.call(updateActiveChannelMembersAdd, members) || {};
|
|
17851
|
+
case 18:
|
|
17852
|
+
updateChannelData = _context2.sent;
|
|
17853
|
+
_context2.next = 21;
|
|
17854
|
+
return effects.put(updateChannelDataAC(channelId, _extends({}, updateChannelData)));
|
|
17855
|
+
case 21:
|
|
17856
|
+
_context2.next = 26;
|
|
17835
17857
|
break;
|
|
17836
|
-
case
|
|
17837
|
-
_context2.prev =
|
|
17858
|
+
case 23:
|
|
17859
|
+
_context2.prev = 23;
|
|
17838
17860
|
_context2.t0 = _context2["catch"](0);
|
|
17839
|
-
case
|
|
17861
|
+
case 26:
|
|
17840
17862
|
case "end":
|
|
17841
17863
|
return _context2.stop();
|
|
17842
17864
|
}
|
|
17843
|
-
}, _marked2$3, null, [[0,
|
|
17865
|
+
}, _marked2$3, null, [[0, 23]]);
|
|
17844
17866
|
}
|
|
17845
17867
|
function addMembers(action) {
|
|
17846
|
-
var payload, members, channelId, channel, membersToAdd, addedMembers, membersIds, messageToSend;
|
|
17868
|
+
var payload, members, channelId, channel, membersToAdd, addedMembers, membersIds, messageToSend, updateChannelData;
|
|
17847
17869
|
return _regeneratorRuntime().wrap(function addMembers$(_context3) {
|
|
17848
17870
|
while (1) switch (_context3.prev = _context3.next) {
|
|
17849
17871
|
case 0:
|
|
@@ -17855,7 +17877,7 @@ function addMembers(action) {
|
|
|
17855
17877
|
case 5:
|
|
17856
17878
|
channel = _context3.sent;
|
|
17857
17879
|
if (!channel) {
|
|
17858
|
-
_context3.next =
|
|
17880
|
+
_context3.next = 25;
|
|
17859
17881
|
break;
|
|
17860
17882
|
}
|
|
17861
17883
|
membersToAdd = members.map(function (mem) {
|
|
@@ -17893,27 +17915,28 @@ function addMembers(action) {
|
|
|
17893
17915
|
memberCount: channel.memberCount + addedMembers.length
|
|
17894
17916
|
});
|
|
17895
17917
|
_context3.next = 22;
|
|
17896
|
-
return effects.
|
|
17897
|
-
memberCount: channel.memberCount + addedMembers.length
|
|
17898
|
-
}));
|
|
17918
|
+
return effects.call(updateActiveChannelMembersAdd, addedMembers) || {};
|
|
17899
17919
|
case 22:
|
|
17900
|
-
|
|
17901
|
-
|
|
17902
|
-
|
|
17903
|
-
|
|
17920
|
+
updateChannelData = _context3.sent;
|
|
17921
|
+
_context3.next = 25;
|
|
17922
|
+
return effects.put(updateChannelDataAC(channel.id, _extends({
|
|
17923
|
+
memberCount: channel.memberCount + addedMembers.length
|
|
17924
|
+
}, updateChannelData)));
|
|
17925
|
+
case 25:
|
|
17926
|
+
_context3.next = 30;
|
|
17904
17927
|
break;
|
|
17905
|
-
case
|
|
17906
|
-
_context3.prev =
|
|
17928
|
+
case 27:
|
|
17929
|
+
_context3.prev = 27;
|
|
17907
17930
|
_context3.t0 = _context3["catch"](0);
|
|
17908
17931
|
log.error('error on add members... ', _context3.t0);
|
|
17909
|
-
case
|
|
17932
|
+
case 30:
|
|
17910
17933
|
case "end":
|
|
17911
17934
|
return _context3.stop();
|
|
17912
17935
|
}
|
|
17913
|
-
}, _marked3$2, null, [[0,
|
|
17936
|
+
}, _marked3$2, null, [[0, 27]]);
|
|
17914
17937
|
}
|
|
17915
17938
|
function kickMemberFromChannel(action) {
|
|
17916
|
-
var payload, memberId, channelId, channel, removedMembers, membersIds, messageToSend;
|
|
17939
|
+
var payload, memberId, channelId, channel, removedMembers, membersIds, messageToSend, updateChannelData;
|
|
17917
17940
|
return _regeneratorRuntime().wrap(function kickMemberFromChannel$(_context4) {
|
|
17918
17941
|
while (1) switch (_context4.prev = _context4.next) {
|
|
17919
17942
|
case 0:
|
|
@@ -17955,26 +17978,27 @@ function kickMemberFromChannel(action) {
|
|
|
17955
17978
|
memberCount: channel.memberCount - removedMembers.length
|
|
17956
17979
|
});
|
|
17957
17980
|
_context4.next = 20;
|
|
17958
|
-
return effects.
|
|
17959
|
-
memberCount: channel.memberCount - removedMembers.length
|
|
17960
|
-
}));
|
|
17981
|
+
return effects.call(updateActiveChannelMembersRemove, removedMembers) || {};
|
|
17961
17982
|
case 20:
|
|
17962
|
-
|
|
17963
|
-
|
|
17964
|
-
|
|
17965
|
-
|
|
17983
|
+
updateChannelData = _context4.sent;
|
|
17984
|
+
_context4.next = 23;
|
|
17985
|
+
return effects.put(updateChannelDataAC(channel.id, _extends({
|
|
17986
|
+
memberCount: channel.memberCount - removedMembers.length
|
|
17987
|
+
}, updateChannelData)));
|
|
17988
|
+
case 23:
|
|
17989
|
+
_context4.next = 27;
|
|
17966
17990
|
break;
|
|
17967
|
-
case
|
|
17968
|
-
_context4.prev =
|
|
17991
|
+
case 25:
|
|
17992
|
+
_context4.prev = 25;
|
|
17969
17993
|
_context4.t0 = _context4["catch"](0);
|
|
17970
|
-
case
|
|
17994
|
+
case 27:
|
|
17971
17995
|
case "end":
|
|
17972
17996
|
return _context4.stop();
|
|
17973
17997
|
}
|
|
17974
|
-
}, _marked4$2, null, [[0,
|
|
17998
|
+
}, _marked4$2, null, [[0, 25]]);
|
|
17975
17999
|
}
|
|
17976
18000
|
function blockMember(action) {
|
|
17977
|
-
var payload, memberId, channelId, channel, removedMembers;
|
|
18001
|
+
var payload, memberId, channelId, channel, removedMembers, updateChannelData;
|
|
17978
18002
|
return _regeneratorRuntime().wrap(function blockMember$(_context5) {
|
|
17979
18003
|
while (1) switch (_context5.prev = _context5.next) {
|
|
17980
18004
|
case 0:
|
|
@@ -17996,23 +18020,24 @@ function blockMember(action) {
|
|
|
17996
18020
|
memberCount: channel.memberCount - removedMembers.length
|
|
17997
18021
|
});
|
|
17998
18022
|
_context5.next = 14;
|
|
17999
|
-
return effects.
|
|
18000
|
-
memberCount: channel.memberCount - removedMembers.length
|
|
18001
|
-
}));
|
|
18023
|
+
return effects.call(updateActiveChannelMembersRemove, removedMembers) || {};
|
|
18002
18024
|
case 14:
|
|
18003
|
-
|
|
18004
|
-
|
|
18005
|
-
|
|
18006
|
-
|
|
18025
|
+
updateChannelData = _context5.sent;
|
|
18026
|
+
_context5.next = 17;
|
|
18027
|
+
return effects.put(updateChannelDataAC(channel.id, _extends({
|
|
18028
|
+
memberCount: channel.memberCount - removedMembers.length
|
|
18029
|
+
}, updateChannelData)));
|
|
18030
|
+
case 17:
|
|
18031
|
+
_context5.next = 21;
|
|
18007
18032
|
break;
|
|
18008
|
-
case
|
|
18009
|
-
_context5.prev =
|
|
18033
|
+
case 19:
|
|
18034
|
+
_context5.prev = 19;
|
|
18010
18035
|
_context5.t0 = _context5["catch"](0);
|
|
18011
|
-
case
|
|
18036
|
+
case 21:
|
|
18012
18037
|
case "end":
|
|
18013
18038
|
return _context5.stop();
|
|
18014
18039
|
}
|
|
18015
|
-
}, _marked5$2, null, [[0,
|
|
18040
|
+
}, _marked5$2, null, [[0, 19]]);
|
|
18016
18041
|
}
|
|
18017
18042
|
function changeMemberRole(action) {
|
|
18018
18043
|
var payload, channelId, members, channel, updatedMembers;
|
|
@@ -27836,7 +27861,8 @@ var Attachment = function Attachment(_ref) {
|
|
|
27836
27861
|
borderColor: borderColor
|
|
27837
27862
|
}, /*#__PURE__*/React__default.createElement(UploadPercent, {
|
|
27838
27863
|
isRepliedMessage: isRepliedMessage,
|
|
27839
|
-
isDetailsView: isDetailsView
|
|
27864
|
+
isDetailsView: isDetailsView,
|
|
27865
|
+
backgroundColor: overlayBackground2
|
|
27840
27866
|
}, isInUploadingState ? (/*#__PURE__*/React__default.createElement(CancelResumeWrapper, {
|
|
27841
27867
|
onClick: handlePauseResumeUpload
|
|
27842
27868
|
}, attachmentCompilationState[attachment.tid] === UPLOAD_STATE.UPLOADING ? (/*#__PURE__*/React__default.createElement(SvgCancel, null)) : (/*#__PURE__*/React__default.createElement(SvgUpload, null)))) : !isCached && (/*#__PURE__*/React__default.createElement(CancelResumeWrapper, {
|
|
@@ -27850,7 +27876,7 @@ var Attachment = function Attachment(_ref) {
|
|
|
27850
27876
|
text: '',
|
|
27851
27877
|
styles: {
|
|
27852
27878
|
background: {
|
|
27853
|
-
fill: overlayBackground2
|
|
27879
|
+
fill: overlayBackground2 + "40"
|
|
27854
27880
|
},
|
|
27855
27881
|
path: {
|
|
27856
27882
|
stroke: textOnPrimary,
|
|
@@ -27900,7 +27926,7 @@ var Attachment = function Attachment(_ref) {
|
|
|
27900
27926
|
text: '',
|
|
27901
27927
|
styles: {
|
|
27902
27928
|
background: {
|
|
27903
|
-
fill: overlayBackground2
|
|
27929
|
+
fill: overlayBackground2 + "40"
|
|
27904
27930
|
},
|
|
27905
27931
|
path: {
|
|
27906
27932
|
stroke: textOnPrimary,
|
|
@@ -27995,7 +28021,7 @@ var Attachment = function Attachment(_ref) {
|
|
|
27995
28021
|
fileAttachment: true,
|
|
27996
28022
|
borderRadius: !(attachmentThumb || attachment.attachmentUrl && isPreview) ? '50%' : undefined,
|
|
27997
28023
|
isDetailsView: isDetailsView,
|
|
27998
|
-
backgroundColor:
|
|
28024
|
+
backgroundColor: overlayBackground2
|
|
27999
28025
|
}, (isInUploadingState || downloadingFile) && (/*#__PURE__*/React__default.createElement(CancelResumeWrapper, {
|
|
28000
28026
|
onClick: handlePauseResumeUpload
|
|
28001
28027
|
}, attachmentCompilationState[attachment.tid] === UPLOAD_STATE.UPLOADING || downloadingFile ? (/*#__PURE__*/React__default.createElement(SvgCancel, null)) : isInUploadingState && /*#__PURE__*/React__default.createElement(SvgUpload, null))), (attachmentCompilationState[attachment.tid] === UPLOAD_STATE.UPLOADING || downloadingFile) && (/*#__PURE__*/React__default.createElement(ProgressWrapper$1, null, /*#__PURE__*/React__default.createElement(reactCircularProgressbar.CircularProgressbar, {
|
|
@@ -28007,7 +28033,7 @@ var Attachment = function Attachment(_ref) {
|
|
|
28007
28033
|
text: '',
|
|
28008
28034
|
styles: {
|
|
28009
28035
|
background: {
|
|
28010
|
-
fill:
|
|
28036
|
+
fill: overlayBackground2 + "40"
|
|
28011
28037
|
},
|
|
28012
28038
|
path: {
|
|
28013
28039
|
stroke: textOnPrimary,
|
|
@@ -36519,7 +36545,7 @@ var Members = function Members(_ref) {
|
|
|
36519
36545
|
var handleMembersListScroll = function handleMembersListScroll(event) {
|
|
36520
36546
|
if (event.target.scrollTop >= event.target.scrollHeight - event.target.offsetHeight - 100) {
|
|
36521
36547
|
if (membersLoading === LOADING_STATE.LOADED) {
|
|
36522
|
-
dispatch(loadMoreMembersAC(15));
|
|
36548
|
+
dispatch(loadMoreMembersAC(15, channel.id));
|
|
36523
36549
|
}
|
|
36524
36550
|
}
|
|
36525
36551
|
};
|
|
@@ -36906,7 +36932,8 @@ var Files = function Files(_ref) {
|
|
|
36906
36932
|
textPrimary = _useColor[THEME_COLORS.TEXT_PRIMARY],
|
|
36907
36933
|
textSecondary = _useColor[THEME_COLORS.TEXT_SECONDARY],
|
|
36908
36934
|
backgroundHovered = _useColor[THEME_COLORS.BACKGROUND_HOVERED],
|
|
36909
|
-
surface1 = _useColor[THEME_COLORS.SURFACE_1]
|
|
36935
|
+
surface1 = _useColor[THEME_COLORS.SURFACE_1],
|
|
36936
|
+
overlayBackground2 = _useColor[THEME_COLORS.OVERLAY_BACKGROUND_2];
|
|
36910
36937
|
var dispatch = reactRedux.useDispatch();
|
|
36911
36938
|
var _useState = React.useState({}),
|
|
36912
36939
|
downloadingFilesMap = _useState[0],
|
|
@@ -36990,7 +37017,7 @@ var Files = function Files(_ref) {
|
|
|
36990
37017
|
text: '',
|
|
36991
37018
|
styles: {
|
|
36992
37019
|
background: {
|
|
36993
|
-
fill:
|
|
37020
|
+
fill: overlayBackground2 + "40"
|
|
36994
37021
|
},
|
|
36995
37022
|
path: {
|
|
36996
37023
|
stroke: accentColor,
|
|
@@ -37977,7 +38004,7 @@ var Details = function Details(_ref) {
|
|
|
37977
38004
|
if (event.target.scrollTop >= event.target.scrollHeight - event.target.offsetHeight - 100) {
|
|
37978
38005
|
if (activeTab === channelDetailsTabs.member) {
|
|
37979
38006
|
if (membersLoading === LOADING_STATE.LOADED) {
|
|
37980
|
-
dispatch(loadMoreMembersAC(15));
|
|
38007
|
+
dispatch(loadMoreMembersAC(15, activeChannel.id));
|
|
37981
38008
|
}
|
|
37982
38009
|
} else if (messagesLoading === LOADING_STATE.LOADED && attachmentsHasNex) {
|
|
37983
38010
|
dispatch(loadMoreAttachmentsAC(20));
|