sceyt-chat-react-uikit 1.6.9-beta.15 → 1.6.9-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 +389 -367
- package/index.modern.js +389 -367
- package/package.json +1 -1
package/index.modern.js
CHANGED
|
@@ -2833,181 +2833,205 @@ function _catch(body, recover) {
|
|
|
2833
2833
|
return result;
|
|
2834
2834
|
}
|
|
2835
2835
|
|
|
2836
|
-
|
|
2837
|
-
|
|
2838
|
-
|
|
2839
|
-
|
|
2840
|
-
|
|
2841
|
-
|
|
2842
|
-
|
|
2843
|
-
|
|
2844
|
-
|
|
2845
|
-
|
|
2836
|
+
// Asynchronously await a promise and pass the result to a finally continuation
|
|
2837
|
+
function _finallyRethrows(body, finalizer) {
|
|
2838
|
+
try {
|
|
2839
|
+
var result = body();
|
|
2840
|
+
} catch (e) {
|
|
2841
|
+
return finalizer(true, e);
|
|
2842
|
+
}
|
|
2843
|
+
if (result && result.then) {
|
|
2844
|
+
return result.then(finalizer.bind(null, false), finalizer.bind(null, true));
|
|
2845
|
+
}
|
|
2846
|
+
return finalizer(false, result);
|
|
2847
|
+
}
|
|
2848
|
+
|
|
2849
|
+
var openDatabase = function openDatabase(dbName) {
|
|
2850
|
+
return new Promise(function (resolve, reject) {
|
|
2851
|
+
var request = indexedDB.open(dbName);
|
|
2852
|
+
request.onsuccess = function () {
|
|
2853
|
+
return resolve(request.result);
|
|
2846
2854
|
};
|
|
2847
|
-
|
|
2848
|
-
|
|
2855
|
+
request.onerror = function () {
|
|
2856
|
+
return reject(request.error);
|
|
2849
2857
|
};
|
|
2850
|
-
|
|
2851
|
-
|
|
2858
|
+
});
|
|
2859
|
+
};
|
|
2860
|
+
var runUpgrade = function runUpgrade(dbName, onUpgrade) {
|
|
2861
|
+
try {
|
|
2862
|
+
return Promise.resolve(openDatabase(dbName)).then(function (db) {
|
|
2863
|
+
var nextVersion = db.version + 1;
|
|
2864
|
+
db.close();
|
|
2865
|
+
return new Promise(function (resolve, reject) {
|
|
2866
|
+
var request = indexedDB.open(dbName, nextVersion);
|
|
2867
|
+
request.onupgradeneeded = function () {
|
|
2868
|
+
var upgradeDb = request.result;
|
|
2869
|
+
onUpgrade(upgradeDb);
|
|
2870
|
+
};
|
|
2871
|
+
request.onsuccess = function () {
|
|
2872
|
+
return resolve(request.result);
|
|
2873
|
+
};
|
|
2874
|
+
request.onerror = function () {
|
|
2875
|
+
return reject(request.error);
|
|
2876
|
+
};
|
|
2877
|
+
request.onblocked = function () {
|
|
2878
|
+
log.warn('IndexedDB upgrade blocked; close other tabs to proceed');
|
|
2879
|
+
};
|
|
2880
|
+
});
|
|
2881
|
+
});
|
|
2882
|
+
} catch (e) {
|
|
2883
|
+
return Promise.reject(e);
|
|
2884
|
+
}
|
|
2885
|
+
};
|
|
2886
|
+
var ensureStore = function ensureStore(dbName, storeName, keyPath) {
|
|
2887
|
+
try {
|
|
2888
|
+
return Promise.resolve(openDatabase(dbName)).then(function (db) {
|
|
2852
2889
|
if (db.objectStoreNames.contains(storeName)) {
|
|
2853
|
-
|
|
2854
|
-
} else {
|
|
2855
|
-
db.close();
|
|
2856
|
-
currentVersion++;
|
|
2857
|
-
_setDataToDB(dbName, storeName, data, keyPath);
|
|
2890
|
+
return db;
|
|
2858
2891
|
}
|
|
2859
|
-
db.
|
|
2860
|
-
|
|
2861
|
-
|
|
2862
|
-
|
|
2863
|
-
|
|
2892
|
+
db.close();
|
|
2893
|
+
return Promise.resolve(runUpgrade(dbName, function (upgradeDb) {
|
|
2894
|
+
if (!upgradeDb.objectStoreNames.contains(storeName)) {
|
|
2895
|
+
upgradeDb.createObjectStore(storeName, {
|
|
2896
|
+
keyPath: keyPath
|
|
2897
|
+
});
|
|
2898
|
+
}
|
|
2899
|
+
}));
|
|
2900
|
+
});
|
|
2901
|
+
} catch (e) {
|
|
2902
|
+
return Promise.reject(e);
|
|
2864
2903
|
}
|
|
2865
2904
|
};
|
|
2866
|
-
var
|
|
2905
|
+
var awaitTransaction = function awaitTransaction(tx) {
|
|
2867
2906
|
return new Promise(function (resolve, reject) {
|
|
2868
|
-
|
|
2869
|
-
|
|
2870
|
-
var db = event.target.result;
|
|
2871
|
-
var transaction = event.target.transaction;
|
|
2872
|
-
if (db.objectStoreNames.contains(storeName)) {
|
|
2873
|
-
var objectStore = transaction.objectStore(storeName);
|
|
2874
|
-
var request = objectStore.get(keyPath);
|
|
2875
|
-
request.onsuccess = function (event) {
|
|
2876
|
-
var result = event.target.result;
|
|
2877
|
-
resolve(result || '');
|
|
2878
|
-
};
|
|
2879
|
-
request.onerror = function (event) {
|
|
2880
|
-
log.error('Error retrieving data during upgrade: ', event.target.error);
|
|
2881
|
-
resolve('');
|
|
2882
|
-
};
|
|
2883
|
-
} else {
|
|
2884
|
-
db.createObjectStore(storeName, {
|
|
2885
|
-
keyPath: keyPatName
|
|
2886
|
-
});
|
|
2887
|
-
resolve('');
|
|
2888
|
-
}
|
|
2907
|
+
tx.oncomplete = function () {
|
|
2908
|
+
return resolve();
|
|
2889
2909
|
};
|
|
2890
|
-
|
|
2891
|
-
|
|
2892
|
-
currentVersion++;
|
|
2893
|
-
resolve(_getDataFromDB(dbName, storeName, keyPath));
|
|
2894
|
-
} else {
|
|
2895
|
-
reject(event);
|
|
2896
|
-
}
|
|
2910
|
+
tx.onerror = function () {
|
|
2911
|
+
return reject(tx.error);
|
|
2897
2912
|
};
|
|
2898
|
-
|
|
2899
|
-
|
|
2900
|
-
if (db.objectStoreNames.contains(storeName)) {
|
|
2901
|
-
var transaction = db.transaction(storeName, 'readonly');
|
|
2902
|
-
var objectStore = transaction.objectStore(storeName);
|
|
2903
|
-
var request = objectStore.get(keyPath);
|
|
2904
|
-
request.onsuccess = function (event) {
|
|
2905
|
-
var result = event.target.result;
|
|
2906
|
-
if (result) {
|
|
2907
|
-
db.close();
|
|
2908
|
-
resolve(result);
|
|
2909
|
-
} else {
|
|
2910
|
-
log.info('No data found for the specified keyPathValue.');
|
|
2911
|
-
db.close();
|
|
2912
|
-
resolve('');
|
|
2913
|
-
}
|
|
2914
|
-
};
|
|
2915
|
-
request.onerror = function (event) {
|
|
2916
|
-
db.close();
|
|
2917
|
-
log.error('Error retrieving data: ', event.target.error);
|
|
2918
|
-
};
|
|
2919
|
-
} else {
|
|
2920
|
-
db.close();
|
|
2921
|
-
resolve('');
|
|
2922
|
-
}
|
|
2913
|
+
tx.onabort = function () {
|
|
2914
|
+
return reject(tx.error);
|
|
2923
2915
|
};
|
|
2924
2916
|
});
|
|
2925
2917
|
};
|
|
2926
|
-
var
|
|
2927
|
-
|
|
2928
|
-
|
|
2929
|
-
|
|
2930
|
-
|
|
2931
|
-
|
|
2932
|
-
|
|
2933
|
-
|
|
2934
|
-
|
|
2935
|
-
|
|
2936
|
-
|
|
2937
|
-
|
|
2938
|
-
|
|
2939
|
-
|
|
2940
|
-
|
|
2941
|
-
if (
|
|
2942
|
-
|
|
2943
|
-
|
|
2944
|
-
|
|
2945
|
-
|
|
2946
|
-
|
|
2947
|
-
|
|
2948
|
-
|
|
2949
|
-
|
|
2950
|
-
|
|
2918
|
+
var putWithPossibleOutOfLineKey = function putWithPossibleOutOfLineKey(store, value, keyField) {
|
|
2919
|
+
try {
|
|
2920
|
+
if (store.keyPath !== null) {
|
|
2921
|
+
store.put(value);
|
|
2922
|
+
return;
|
|
2923
|
+
}
|
|
2924
|
+
} catch (e) {}
|
|
2925
|
+
var explicitKey = value === null || value === void 0 ? void 0 : value[keyField];
|
|
2926
|
+
if (explicitKey === undefined || explicitKey === null) {
|
|
2927
|
+
throw new Error("IndexedDB put requires explicit key but value has no '" + keyField + "' field");
|
|
2928
|
+
}
|
|
2929
|
+
store.put(value, explicitKey);
|
|
2930
|
+
};
|
|
2931
|
+
var setDataToDB = function setDataToDB(dbName, storeName, data, keyPath) {
|
|
2932
|
+
try {
|
|
2933
|
+
if (!('indexedDB' in window)) {
|
|
2934
|
+
log.info("This browser doesn't support IndexedDB");
|
|
2935
|
+
return Promise.resolve();
|
|
2936
|
+
}
|
|
2937
|
+
return Promise.resolve(ensureStore(dbName, storeName, keyPath)).then(function (db) {
|
|
2938
|
+
var _temp = _finallyRethrows(function () {
|
|
2939
|
+
var tx = db.transaction(storeName, 'readwrite');
|
|
2940
|
+
var store = tx.objectStore(storeName);
|
|
2941
|
+
data.forEach(function (value) {
|
|
2942
|
+
putWithPossibleOutOfLineKey(store, value, keyPath);
|
|
2943
|
+
});
|
|
2944
|
+
return Promise.resolve(awaitTransaction(tx)).then(function () {});
|
|
2945
|
+
}, function (_wasThrown, _result) {
|
|
2946
|
+
db.close();
|
|
2947
|
+
if (_wasThrown) throw _result;
|
|
2948
|
+
return _result;
|
|
2951
2949
|
});
|
|
2952
|
-
|
|
2953
|
-
|
|
2954
|
-
|
|
2955
|
-
|
|
2956
|
-
|
|
2957
|
-
|
|
2958
|
-
|
|
2959
|
-
|
|
2960
|
-
|
|
2961
|
-
|
|
2962
|
-
|
|
2950
|
+
if (_temp && _temp.then) return _temp.then(function () {});
|
|
2951
|
+
});
|
|
2952
|
+
} catch (e) {
|
|
2953
|
+
return Promise.reject(e);
|
|
2954
|
+
}
|
|
2955
|
+
};
|
|
2956
|
+
var getDataFromDB = function getDataFromDB(dbName, storeName, keyPathValue, keyPathName) {
|
|
2957
|
+
try {
|
|
2958
|
+
return Promise.resolve(_catch(function () {
|
|
2959
|
+
return Promise.resolve(openDatabase(dbName)).then(function (db) {
|
|
2960
|
+
var _exit = false;
|
|
2961
|
+
function _temp5(_result2) {
|
|
2962
|
+
if (_exit) return _result2;
|
|
2963
|
+
var tx = db.transaction(storeName, 'readonly');
|
|
2964
|
+
var objectStore = tx.objectStore(storeName);
|
|
2965
|
+
return Promise.resolve(new Promise(function (resolve, reject) {
|
|
2966
|
+
var request = objectStore.get(keyPathValue);
|
|
2967
|
+
request.onsuccess = function () {
|
|
2968
|
+
return resolve(request.result);
|
|
2969
|
+
};
|
|
2970
|
+
request.onerror = function () {
|
|
2971
|
+
return reject(request.error);
|
|
2972
|
+
};
|
|
2973
|
+
})).then(function (result) {
|
|
2974
|
+
db.close();
|
|
2975
|
+
return result || '';
|
|
2976
|
+
});
|
|
2977
|
+
}
|
|
2978
|
+
var _temp4 = function () {
|
|
2979
|
+
if (!db.objectStoreNames.contains(storeName)) {
|
|
2980
|
+
var _temp3 = function _temp3() {
|
|
2981
|
+
_exit = true;
|
|
2982
|
+
return '';
|
|
2983
|
+
};
|
|
2984
|
+
db.close();
|
|
2985
|
+
var _temp2 = function () {
|
|
2986
|
+
if (keyPathName) {
|
|
2987
|
+
return Promise.resolve(ensureStore(dbName, storeName, keyPathName)).then(function (upgraded) {
|
|
2988
|
+
upgraded.close();
|
|
2989
|
+
});
|
|
2990
|
+
}
|
|
2991
|
+
}();
|
|
2992
|
+
return _temp2 && _temp2.then ? _temp2.then(_temp3) : _temp3(_temp2);
|
|
2993
|
+
}
|
|
2994
|
+
}();
|
|
2995
|
+
return _temp4 && _temp4.then ? _temp4.then(_temp5) : _temp5(_temp4);
|
|
2963
2996
|
});
|
|
2964
|
-
}
|
|
2997
|
+
}, function (error) {
|
|
2998
|
+
log.error('Error retrieving data: ', error);
|
|
2999
|
+
return '';
|
|
3000
|
+
}));
|
|
3001
|
+
} catch (e) {
|
|
3002
|
+
return Promise.reject(e);
|
|
2965
3003
|
}
|
|
2966
3004
|
};
|
|
2967
3005
|
var getAllStoreNames = function getAllStoreNames(dbName) {
|
|
2968
|
-
|
|
2969
|
-
|
|
2970
|
-
openRequest.onupgradeneeded = function (event) {
|
|
2971
|
-
var db = event.target.result;
|
|
2972
|
-
resolve(Array.from(db.objectStoreNames));
|
|
2973
|
-
};
|
|
2974
|
-
openRequest.onerror = function () {
|
|
2975
|
-
log.error('Indexeddb Error ', openRequest.error);
|
|
2976
|
-
reject(openRequest.error);
|
|
2977
|
-
};
|
|
2978
|
-
openRequest.onsuccess = function (event) {
|
|
2979
|
-
var db = event.target.result;
|
|
3006
|
+
try {
|
|
3007
|
+
return Promise.resolve(openDatabase(dbName)).then(function (db) {
|
|
2980
3008
|
try {
|
|
2981
|
-
|
|
2982
|
-
|
|
2983
|
-
resolve(storeNames);
|
|
2984
|
-
} catch (error) {
|
|
3009
|
+
return Array.from(db.objectStoreNames);
|
|
3010
|
+
} finally {
|
|
2985
3011
|
db.close();
|
|
2986
|
-
reject(error);
|
|
2987
3012
|
}
|
|
2988
|
-
};
|
|
2989
|
-
})
|
|
3013
|
+
});
|
|
3014
|
+
} catch (e) {
|
|
3015
|
+
return Promise.reject(e);
|
|
3016
|
+
}
|
|
2990
3017
|
};
|
|
2991
3018
|
var deleteStore = function deleteStore(dbName, storeName) {
|
|
2992
|
-
|
|
2993
|
-
|
|
2994
|
-
|
|
2995
|
-
var db = event.target.result;
|
|
2996
|
-
if (db.objectStoreNames.contains(storeName)) {
|
|
2997
|
-
db.deleteObjectStore(storeName);
|
|
2998
|
-
currentVersion++;
|
|
2999
|
-
}
|
|
3000
|
-
};
|
|
3001
|
-
openRequest.onerror = function () {
|
|
3002
|
-
log.error('Indexeddb Error ', openRequest.error);
|
|
3003
|
-
reject(openRequest.error);
|
|
3004
|
-
};
|
|
3005
|
-
openRequest.onsuccess = function (event) {
|
|
3006
|
-
var db = event.target.result;
|
|
3019
|
+
try {
|
|
3020
|
+
return Promise.resolve(openDatabase(dbName)).then(function (db) {
|
|
3021
|
+
var shouldDelete = db.objectStoreNames.contains(storeName);
|
|
3007
3022
|
db.close();
|
|
3008
|
-
|
|
3009
|
-
|
|
3010
|
-
|
|
3023
|
+
if (!shouldDelete) return;
|
|
3024
|
+
return Promise.resolve(runUpgrade(dbName, function (upgradeDb) {
|
|
3025
|
+
if (upgradeDb.objectStoreNames.contains(storeName)) {
|
|
3026
|
+
upgradeDb.deleteObjectStore(storeName);
|
|
3027
|
+
}
|
|
3028
|
+
})).then(function (upgraded) {
|
|
3029
|
+
upgraded.close();
|
|
3030
|
+
});
|
|
3031
|
+
});
|
|
3032
|
+
} catch (e) {
|
|
3033
|
+
return Promise.reject(e);
|
|
3034
|
+
}
|
|
3011
3035
|
};
|
|
3012
3036
|
|
|
3013
3037
|
var METADATA_DB_NAME = 'sceyt-metadata-db';
|
|
@@ -3030,7 +3054,7 @@ var storeMetadata = function storeMetadata(url, metadata) {
|
|
|
3030
3054
|
expiresAt: Date.now() + CACHE_DURATION
|
|
3031
3055
|
});
|
|
3032
3056
|
var _temp = _catch(function () {
|
|
3033
|
-
return Promise.resolve(
|
|
3057
|
+
return Promise.resolve(setDataToDB(METADATA_DB_NAME, currentMonth, [metadataRecord], 'url')).then(function () {});
|
|
3034
3058
|
}, function (error) {
|
|
3035
3059
|
console.error('Failed to store metadata in IndexedDB:', error);
|
|
3036
3060
|
});
|
|
@@ -3078,7 +3102,7 @@ var cleanupOldMonthsMetadata = function cleanupOldMonthsMetadata() {
|
|
|
3078
3102
|
var getMetadata = function getMetadata(url) {
|
|
3079
3103
|
return Promise.resolve(_catch(function () {
|
|
3080
3104
|
var currentMonth = getCurrentMonthKey();
|
|
3081
|
-
return Promise.resolve(
|
|
3105
|
+
return Promise.resolve(getDataFromDB(METADATA_DB_NAME, currentMonth, url, 'url')).then(function (result) {
|
|
3082
3106
|
if (!result || typeof result === 'string') {
|
|
3083
3107
|
return null;
|
|
3084
3108
|
}
|
|
@@ -10916,11 +10940,11 @@ var defaultTheme = {
|
|
|
10916
10940
|
light: '#D9D9DF',
|
|
10917
10941
|
dark: '#303032'
|
|
10918
10942
|
}, _colors[THEME_COLORS.OVERLAY_BACKGROUND] = {
|
|
10919
|
-
light: '
|
|
10920
|
-
dark: '
|
|
10943
|
+
light: '#111539',
|
|
10944
|
+
dark: '#111539'
|
|
10921
10945
|
}, _colors[THEME_COLORS.OVERLAY_BACKGROUND_2] = {
|
|
10922
|
-
light: '
|
|
10923
|
-
dark: '
|
|
10946
|
+
light: '#111539',
|
|
10947
|
+
dark: '#111539'
|
|
10924
10948
|
}, _colors[THEME_COLORS.WARNING] = {
|
|
10925
10949
|
light: '#FA4C56',
|
|
10926
10950
|
dark: '#FA4C56'
|
|
@@ -11246,11 +11270,12 @@ var sendTypingAC = function sendTypingAC(state) {
|
|
|
11246
11270
|
}
|
|
11247
11271
|
};
|
|
11248
11272
|
};
|
|
11249
|
-
var sendRecordingAC = function sendRecordingAC(state) {
|
|
11273
|
+
var sendRecordingAC = function sendRecordingAC(state, channelId) {
|
|
11250
11274
|
return {
|
|
11251
11275
|
type: SEND_RECORDING,
|
|
11252
11276
|
payload: {
|
|
11253
|
-
state: state
|
|
11277
|
+
state: state,
|
|
11278
|
+
channelId: channelId
|
|
11254
11279
|
}
|
|
11255
11280
|
};
|
|
11256
11281
|
};
|
|
@@ -12876,7 +12901,7 @@ var UploadPercent = styled.span(_templateObject38 || (_templateObject38 = _tagge
|
|
|
12876
12901
|
}, function (props) {
|
|
12877
12902
|
return props.fileAttachment || props.isRepliedMessage || props.isDetailsView ? '40px' : '56px';
|
|
12878
12903
|
}, function (props) {
|
|
12879
|
-
return props.backgroundColor + "
|
|
12904
|
+
return props.backgroundColor + "66";
|
|
12880
12905
|
}, function (props) {
|
|
12881
12906
|
return props.borderRadius ? props.borderRadius : props.fileAttachment ? '8px' : props.isRepliedMessage ? '4px' : ' 50%';
|
|
12882
12907
|
}, function (props) {
|
|
@@ -16197,47 +16222,43 @@ function sendTyping(action) {
|
|
|
16197
16222
|
}, _marked22, null, [[3, 7]]);
|
|
16198
16223
|
}
|
|
16199
16224
|
function sendRecording(action) {
|
|
16200
|
-
var state,
|
|
16225
|
+
var _action$payload, state, channelId, channel, _t24;
|
|
16201
16226
|
return _regenerator().w(function (_context23) {
|
|
16202
16227
|
while (1) switch (_context23.p = _context23.n) {
|
|
16203
16228
|
case 0:
|
|
16204
|
-
|
|
16229
|
+
_action$payload = action.payload, state = _action$payload.state, channelId = _action$payload.channelId;
|
|
16205
16230
|
_context23.n = 1;
|
|
16206
|
-
return call(
|
|
16231
|
+
return call(getChannelFromMap, channelId);
|
|
16207
16232
|
case 1:
|
|
16208
|
-
activeChannelId = _context23.v;
|
|
16209
|
-
_context23.n = 2;
|
|
16210
|
-
return call(getChannelFromMap, activeChannelId);
|
|
16211
|
-
case 2:
|
|
16212
16233
|
channel = _context23.v;
|
|
16213
|
-
_context23.p =
|
|
16234
|
+
_context23.p = 2;
|
|
16214
16235
|
if (!channel) {
|
|
16215
|
-
_context23.n =
|
|
16236
|
+
_context23.n = 5;
|
|
16216
16237
|
break;
|
|
16217
16238
|
}
|
|
16218
16239
|
if (!state) {
|
|
16219
|
-
_context23.n =
|
|
16240
|
+
_context23.n = 4;
|
|
16220
16241
|
break;
|
|
16221
16242
|
}
|
|
16222
|
-
_context23.n =
|
|
16243
|
+
_context23.n = 3;
|
|
16223
16244
|
return call(channel.startRecording);
|
|
16224
|
-
case
|
|
16225
|
-
_context23.n =
|
|
16245
|
+
case 3:
|
|
16246
|
+
_context23.n = 5;
|
|
16226
16247
|
break;
|
|
16227
|
-
case
|
|
16228
|
-
_context23.n =
|
|
16248
|
+
case 4:
|
|
16249
|
+
_context23.n = 5;
|
|
16229
16250
|
return call(channel.stopRecording);
|
|
16230
|
-
case
|
|
16231
|
-
_context23.n =
|
|
16251
|
+
case 5:
|
|
16252
|
+
_context23.n = 7;
|
|
16232
16253
|
break;
|
|
16233
|
-
case
|
|
16234
|
-
_context23.p =
|
|
16254
|
+
case 6:
|
|
16255
|
+
_context23.p = 6;
|
|
16235
16256
|
_t24 = _context23.v;
|
|
16236
16257
|
log.error('ERROR in send recording', _t24);
|
|
16237
|
-
case
|
|
16258
|
+
case 7:
|
|
16238
16259
|
return _context23.a(2);
|
|
16239
16260
|
}
|
|
16240
|
-
}, _marked23, null, [[
|
|
16261
|
+
}, _marked23, null, [[2, 6]]);
|
|
16241
16262
|
}
|
|
16242
16263
|
function clearHistory(action) {
|
|
16243
16264
|
var payload, channelId, channel, activeChannelId, groupName, _t25;
|
|
@@ -17218,7 +17239,7 @@ function sendMessage(action) {
|
|
|
17218
17239
|
} else {
|
|
17219
17240
|
var pendingAttachment = getPendingAttachment(attachment.tid);
|
|
17220
17241
|
if (!attachment.cachedUrl) {
|
|
17221
|
-
|
|
17242
|
+
setDataToDB(DB_NAMES.FILES_STORAGE, DB_STORE_NAMES.ATTACHMENTS, [_extends({}, updatedAttachment, {
|
|
17222
17243
|
checksum: pendingAttachment.checksum
|
|
17223
17244
|
})], 'checksum');
|
|
17224
17245
|
}
|
|
@@ -17376,7 +17397,7 @@ function sendMessage(action) {
|
|
|
17376
17397
|
});
|
|
17377
17398
|
pendingAttachment = getPendingAttachment(messageAttachment[k].tid);
|
|
17378
17399
|
if (!messageAttachment[k].cachedUrl) {
|
|
17379
|
-
|
|
17400
|
+
setDataToDB(DB_NAMES.FILES_STORAGE, DB_STORE_NAMES.ATTACHMENTS, [_extends({}, messageResponse.attachments[k], {
|
|
17380
17401
|
checksum: pendingAttachment.checksum || (pendingAttachment === null || pendingAttachment === void 0 ? void 0 : pendingAttachment.file)
|
|
17381
17402
|
})], 'checksum');
|
|
17382
17403
|
}
|
|
@@ -18294,23 +18315,22 @@ function getMessagesQuery(action) {
|
|
|
18294
18315
|
return _regenerator().w(function (_context9) {
|
|
18295
18316
|
while (1) switch (_context9.p = _context9.n) {
|
|
18296
18317
|
case 0:
|
|
18297
|
-
|
|
18298
|
-
_context9.
|
|
18299
|
-
_context9.n = 2;
|
|
18318
|
+
_context9.p = 0;
|
|
18319
|
+
_context9.n = 1;
|
|
18300
18320
|
return put(setMessagesLoadingStateAC(LOADING_STATE.LOADING));
|
|
18301
|
-
case
|
|
18321
|
+
case 1:
|
|
18302
18322
|
_action$payload = action.payload, channel = _action$payload.channel, loadWithLastMessage = _action$payload.loadWithLastMessage, messageId = _action$payload.messageId, limit = _action$payload.limit, withDeliveredMessages = _action$payload.withDeliveredMessages, highlight = _action$payload.highlight;
|
|
18303
18323
|
if (!(channel.id && !channel.isMockChannel)) {
|
|
18304
|
-
_context9.n =
|
|
18324
|
+
_context9.n = 47;
|
|
18305
18325
|
break;
|
|
18306
18326
|
}
|
|
18307
18327
|
SceytChatClient = getClient();
|
|
18308
18328
|
messageQueryBuilder = new SceytChatClient.MessageListQueryBuilder(channel.id);
|
|
18309
18329
|
messageQueryBuilder.limit(limit || MESSAGES_MAX_LENGTH);
|
|
18310
18330
|
messageQueryBuilder.reverse(true);
|
|
18311
|
-
_context9.n =
|
|
18331
|
+
_context9.n = 2;
|
|
18312
18332
|
return call(messageQueryBuilder.build);
|
|
18313
|
-
case
|
|
18333
|
+
case 2:
|
|
18314
18334
|
messageQuery = _context9.v;
|
|
18315
18335
|
query.messageQuery = messageQuery;
|
|
18316
18336
|
cachedMessages = getMessagesFromMap(channel.id);
|
|
@@ -18319,33 +18339,33 @@ function getMessagesQuery(action) {
|
|
|
18319
18339
|
hasNext: false
|
|
18320
18340
|
};
|
|
18321
18341
|
if (!loadWithLastMessage) {
|
|
18322
|
-
_context9.n =
|
|
18342
|
+
_context9.n = 13;
|
|
18323
18343
|
break;
|
|
18324
18344
|
}
|
|
18325
18345
|
allMessages = getAllMessages();
|
|
18326
18346
|
havLastMessage = allMessages && allMessages.length && channel.lastMessage && allMessages[allMessages.length - 1] && allMessages[allMessages.length - 1].id === channel.lastMessage.id;
|
|
18327
18347
|
if (!(channel.newMessageCount && channel.newMessageCount > 0 || !havLastMessage)) {
|
|
18328
|
-
_context9.n =
|
|
18348
|
+
_context9.n = 8;
|
|
18329
18349
|
break;
|
|
18330
18350
|
}
|
|
18331
18351
|
setHasPrevCached(false);
|
|
18332
18352
|
setAllMessages([]);
|
|
18333
|
-
_context9.n =
|
|
18353
|
+
_context9.n = 3;
|
|
18334
18354
|
return call(messageQuery.loadPreviousMessageId, '0');
|
|
18335
|
-
case
|
|
18355
|
+
case 3:
|
|
18336
18356
|
result = _context9.v;
|
|
18337
18357
|
if (!(result.messages.length === 50)) {
|
|
18338
|
-
_context9.n =
|
|
18358
|
+
_context9.n = 5;
|
|
18339
18359
|
break;
|
|
18340
18360
|
}
|
|
18341
18361
|
messageQuery.limit = 30;
|
|
18342
|
-
_context9.n =
|
|
18362
|
+
_context9.n = 4;
|
|
18343
18363
|
return call(messageQuery.loadPreviousMessageId, result.messages[0].id);
|
|
18344
|
-
case
|
|
18364
|
+
case 4:
|
|
18345
18365
|
secondResult = _context9.v;
|
|
18346
18366
|
result.messages = [].concat(secondResult.messages, result.messages);
|
|
18347
18367
|
result.hasNext = secondResult.hasNext;
|
|
18348
|
-
case
|
|
18368
|
+
case 5:
|
|
18349
18369
|
sentMessages = [];
|
|
18350
18370
|
if (withDeliveredMessages) {
|
|
18351
18371
|
sentMessages = getFromAllMessagesByMessageId('', '', true);
|
|
@@ -18358,43 +18378,40 @@ function getMessagesQuery(action) {
|
|
|
18358
18378
|
return !messagesMap[msg.tid || ''];
|
|
18359
18379
|
});
|
|
18360
18380
|
result.messages = [].concat(result.messages, filteredSentMessages).slice(filteredSentMessages.length);
|
|
18361
|
-
_context9.n =
|
|
18381
|
+
_context9.n = 6;
|
|
18362
18382
|
return put(setMessagesAC(JSON.parse(JSON.stringify(result.messages))));
|
|
18363
|
-
case
|
|
18383
|
+
case 6:
|
|
18364
18384
|
setMessagesToMap(channel.id, result.messages);
|
|
18365
18385
|
setAllMessages(result.messages);
|
|
18366
|
-
_context9.n =
|
|
18386
|
+
_context9.n = 7;
|
|
18367
18387
|
return put(setMessagesHasPrevAC(true));
|
|
18388
|
+
case 7:
|
|
18389
|
+
_context9.n = 10;
|
|
18390
|
+
break;
|
|
18368
18391
|
case 8:
|
|
18392
|
+
result.messages = getFromAllMessagesByMessageId('', '', true);
|
|
18369
18393
|
_context9.n = 9;
|
|
18370
|
-
return put(
|
|
18394
|
+
return put(setMessagesAC(JSON.parse(JSON.stringify(result.messages))));
|
|
18371
18395
|
case 9:
|
|
18372
|
-
_context9.n =
|
|
18373
|
-
|
|
18396
|
+
_context9.n = 10;
|
|
18397
|
+
return put(setMessagesHasPrevAC(true));
|
|
18374
18398
|
case 10:
|
|
18375
|
-
result.messages = getFromAllMessagesByMessageId('', '', true);
|
|
18376
18399
|
_context9.n = 11;
|
|
18377
|
-
return put(setMessagesAC(JSON.parse(JSON.stringify(result.messages))));
|
|
18378
|
-
case 11:
|
|
18379
|
-
_context9.n = 12;
|
|
18380
|
-
return put(setMessagesHasPrevAC(true));
|
|
18381
|
-
case 12:
|
|
18382
|
-
_context9.n = 13;
|
|
18383
18400
|
return put(setMessagesHasNextAC(false));
|
|
18384
|
-
case
|
|
18401
|
+
case 11:
|
|
18385
18402
|
setHasNextCached(false);
|
|
18386
18403
|
if (!messageId) {
|
|
18387
|
-
_context9.n =
|
|
18404
|
+
_context9.n = 12;
|
|
18388
18405
|
break;
|
|
18389
18406
|
}
|
|
18390
|
-
_context9.n =
|
|
18407
|
+
_context9.n = 12;
|
|
18391
18408
|
return put(setScrollToMessagesAC(messageId, highlight));
|
|
18392
|
-
case
|
|
18393
|
-
_context9.n =
|
|
18409
|
+
case 12:
|
|
18410
|
+
_context9.n = 44;
|
|
18394
18411
|
break;
|
|
18395
|
-
case
|
|
18412
|
+
case 13:
|
|
18396
18413
|
if (!messageId) {
|
|
18397
|
-
_context9.n =
|
|
18414
|
+
_context9.n = 25;
|
|
18398
18415
|
break;
|
|
18399
18416
|
}
|
|
18400
18417
|
_allMessages = getAllMessages();
|
|
@@ -18403,160 +18420,160 @@ function getMessagesQuery(action) {
|
|
|
18403
18420
|
});
|
|
18404
18421
|
maxLengthPart = MESSAGES_MAX_LENGTH / 2;
|
|
18405
18422
|
if (!(messageIndex >= maxLengthPart)) {
|
|
18406
|
-
_context9.n =
|
|
18423
|
+
_context9.n = 15;
|
|
18407
18424
|
break;
|
|
18408
18425
|
}
|
|
18409
18426
|
result.messages = _allMessages.slice(messageIndex - maxLengthPart, messageIndex + maxLengthPart);
|
|
18410
|
-
_context9.n =
|
|
18427
|
+
_context9.n = 14;
|
|
18411
18428
|
return put(setMessagesAC(JSON.parse(JSON.stringify(result.messages))));
|
|
18412
|
-
case
|
|
18429
|
+
case 14:
|
|
18413
18430
|
setHasPrevCached(messageIndex > maxLengthPart);
|
|
18414
18431
|
setHasNextCached(_allMessages.length > maxLengthPart);
|
|
18415
|
-
_context9.n =
|
|
18432
|
+
_context9.n = 22;
|
|
18416
18433
|
break;
|
|
18417
|
-
case
|
|
18434
|
+
case 15:
|
|
18418
18435
|
messageQuery.limit = MESSAGES_MAX_LENGTH;
|
|
18419
18436
|
log.info('load by message id from server ...............', messageId);
|
|
18420
|
-
_context9.n =
|
|
18437
|
+
_context9.n = 16;
|
|
18421
18438
|
return call(messageQuery.loadNearMessageId, messageId);
|
|
18422
|
-
case
|
|
18439
|
+
case 16:
|
|
18423
18440
|
result = _context9.v;
|
|
18424
18441
|
if (!(result.messages.length === 50)) {
|
|
18425
|
-
_context9.n =
|
|
18442
|
+
_context9.n = 19;
|
|
18426
18443
|
break;
|
|
18427
18444
|
}
|
|
18428
18445
|
messageQuery.limit = (MESSAGES_MAX_LENGTH - 50) / 2;
|
|
18429
|
-
_context9.n =
|
|
18446
|
+
_context9.n = 17;
|
|
18430
18447
|
return call(messageQuery.loadPreviousMessageId, result.messages[0].id);
|
|
18431
|
-
case
|
|
18448
|
+
case 17:
|
|
18432
18449
|
_secondResult = _context9.v;
|
|
18433
18450
|
messageQuery.reverse = false;
|
|
18434
|
-
_context9.n =
|
|
18451
|
+
_context9.n = 18;
|
|
18435
18452
|
return call(messageQuery.loadNextMessageId, result.messages[result.messages.length - 1].id);
|
|
18436
|
-
case
|
|
18453
|
+
case 18:
|
|
18437
18454
|
thirdResult = _context9.v;
|
|
18438
18455
|
result.messages = [].concat(_secondResult.messages, result.messages, thirdResult.messages);
|
|
18439
18456
|
result.hasNext = _secondResult.hasNext;
|
|
18440
18457
|
messageQuery.reverse = true;
|
|
18441
|
-
case
|
|
18458
|
+
case 19:
|
|
18442
18459
|
log.info('result from server ....... ', result);
|
|
18443
|
-
_context9.n =
|
|
18460
|
+
_context9.n = 20;
|
|
18444
18461
|
return put(setMessagesHasNextAC(true));
|
|
18445
|
-
case
|
|
18446
|
-
_context9.n =
|
|
18462
|
+
case 20:
|
|
18463
|
+
_context9.n = 21;
|
|
18447
18464
|
return put(setMessagesAC(JSON.parse(JSON.stringify(result.messages))));
|
|
18448
|
-
case
|
|
18465
|
+
case 21:
|
|
18449
18466
|
setAllMessages([].concat(result.messages));
|
|
18450
18467
|
setHasPrevCached(false);
|
|
18451
18468
|
setHasNextCached(false);
|
|
18452
|
-
case
|
|
18453
|
-
_context9.n =
|
|
18469
|
+
case 22:
|
|
18470
|
+
_context9.n = 23;
|
|
18454
18471
|
return put(setScrollToMessagesAC(messageId));
|
|
18455
|
-
case
|
|
18456
|
-
_context9.n =
|
|
18472
|
+
case 23:
|
|
18473
|
+
_context9.n = 24;
|
|
18457
18474
|
return put(setMessagesLoadingStateAC(LOADING_STATE.LOADED));
|
|
18458
|
-
case
|
|
18459
|
-
_context9.n =
|
|
18475
|
+
case 24:
|
|
18476
|
+
_context9.n = 44;
|
|
18460
18477
|
break;
|
|
18461
|
-
case
|
|
18478
|
+
case 25:
|
|
18462
18479
|
if (!(channel.newMessageCount && channel.lastDisplayedMessageId)) {
|
|
18463
|
-
_context9.n =
|
|
18480
|
+
_context9.n = 38;
|
|
18464
18481
|
break;
|
|
18465
18482
|
}
|
|
18466
18483
|
setAllMessages([]);
|
|
18467
18484
|
messageQuery.limit = MESSAGES_MAX_LENGTH;
|
|
18468
18485
|
if (!Number(channel.lastDisplayedMessageId)) {
|
|
18469
|
-
_context9.n =
|
|
18486
|
+
_context9.n = 31;
|
|
18470
18487
|
break;
|
|
18471
18488
|
}
|
|
18472
|
-
_context9.n =
|
|
18489
|
+
_context9.n = 26;
|
|
18473
18490
|
return call(messageQuery.loadNearMessageId, channel.lastDisplayedMessageId);
|
|
18474
|
-
case
|
|
18491
|
+
case 26:
|
|
18475
18492
|
result = _context9.v;
|
|
18476
18493
|
if (!(result.messages.length === 50)) {
|
|
18477
|
-
_context9.n =
|
|
18494
|
+
_context9.n = 30;
|
|
18478
18495
|
break;
|
|
18479
18496
|
}
|
|
18480
18497
|
messageQuery.limit = channel.newMessageCount > 25 ? (MESSAGES_MAX_LENGTH - 50) / 2 : MESSAGES_MAX_LENGTH - 50;
|
|
18481
|
-
_context9.n =
|
|
18498
|
+
_context9.n = 27;
|
|
18482
18499
|
return call(messageQuery.loadPreviousMessageId, result.messages[0].id);
|
|
18483
|
-
case
|
|
18500
|
+
case 27:
|
|
18484
18501
|
_secondResult2 = _context9.v;
|
|
18485
18502
|
if (!(channel.newMessageCount > 25)) {
|
|
18486
|
-
_context9.n =
|
|
18503
|
+
_context9.n = 29;
|
|
18487
18504
|
break;
|
|
18488
18505
|
}
|
|
18489
18506
|
messageQuery.reverse = false;
|
|
18490
|
-
_context9.n =
|
|
18507
|
+
_context9.n = 28;
|
|
18491
18508
|
return call(messageQuery.loadNextMessageId, result.messages[result.messages.length - 1].id);
|
|
18492
|
-
case
|
|
18509
|
+
case 28:
|
|
18493
18510
|
_thirdResult = _context9.v;
|
|
18494
18511
|
result.messages = [].concat(_secondResult2.messages, result.messages, _thirdResult.messages);
|
|
18495
18512
|
messageQuery.reverse = true;
|
|
18496
|
-
_context9.n =
|
|
18513
|
+
_context9.n = 30;
|
|
18497
18514
|
break;
|
|
18498
|
-
case
|
|
18515
|
+
case 29:
|
|
18499
18516
|
result.messages = [].concat(_secondResult2.messages, result.messages);
|
|
18500
|
-
case
|
|
18501
|
-
_context9.n = 36;
|
|
18502
|
-
break;
|
|
18503
|
-
case 33:
|
|
18517
|
+
case 30:
|
|
18504
18518
|
_context9.n = 34;
|
|
18519
|
+
break;
|
|
18520
|
+
case 31:
|
|
18521
|
+
_context9.n = 32;
|
|
18505
18522
|
return call(messageQuery.loadPrevious);
|
|
18506
|
-
case
|
|
18523
|
+
case 32:
|
|
18507
18524
|
result = _context9.v;
|
|
18508
18525
|
if (!(result.messages.length === 50)) {
|
|
18509
|
-
_context9.n =
|
|
18526
|
+
_context9.n = 34;
|
|
18510
18527
|
break;
|
|
18511
18528
|
}
|
|
18512
18529
|
messageQuery.limit = MESSAGES_MAX_LENGTH - 50;
|
|
18513
|
-
_context9.n =
|
|
18530
|
+
_context9.n = 33;
|
|
18514
18531
|
return call(messageQuery.loadPreviousMessageId, result.messages[0].id);
|
|
18515
|
-
case
|
|
18532
|
+
case 33:
|
|
18516
18533
|
_secondResult3 = _context9.v;
|
|
18517
18534
|
result.messages = [].concat(_secondResult3.messages, result.messages);
|
|
18518
18535
|
result.hasNext = _secondResult3.hasNext;
|
|
18519
|
-
case
|
|
18536
|
+
case 34:
|
|
18520
18537
|
setMessagesToMap(channel.id, result.messages);
|
|
18521
|
-
_context9.n =
|
|
18538
|
+
_context9.n = 35;
|
|
18522
18539
|
return put(setMessagesHasPrevAC(true));
|
|
18523
|
-
case
|
|
18524
|
-
_context9.n =
|
|
18540
|
+
case 35:
|
|
18541
|
+
_context9.n = 36;
|
|
18525
18542
|
return put(setMessagesHasNextAC(channel.lastMessage && result.messages.length > 0 && channel.lastMessage.id !== result.messages[result.messages.length - 1].id));
|
|
18526
|
-
case
|
|
18543
|
+
case 36:
|
|
18527
18544
|
setAllMessages([].concat(result.messages));
|
|
18528
|
-
_context9.n =
|
|
18545
|
+
_context9.n = 37;
|
|
18529
18546
|
return put(setMessagesAC(JSON.parse(JSON.stringify(result.messages))));
|
|
18530
|
-
case
|
|
18531
|
-
_context9.n =
|
|
18547
|
+
case 37:
|
|
18548
|
+
_context9.n = 44;
|
|
18532
18549
|
break;
|
|
18533
|
-
case
|
|
18550
|
+
case 38:
|
|
18534
18551
|
setAllMessages([]);
|
|
18535
18552
|
if (!(cachedMessages && cachedMessages.length)) {
|
|
18536
|
-
_context9.n =
|
|
18553
|
+
_context9.n = 39;
|
|
18537
18554
|
break;
|
|
18538
18555
|
}
|
|
18539
18556
|
setAllMessages([].concat(cachedMessages));
|
|
18540
|
-
_context9.n =
|
|
18557
|
+
_context9.n = 39;
|
|
18541
18558
|
return put(setMessagesAC(JSON.parse(JSON.stringify(cachedMessages))));
|
|
18542
|
-
case
|
|
18559
|
+
case 39:
|
|
18543
18560
|
log.info('load message from server');
|
|
18544
|
-
_context9.n =
|
|
18561
|
+
_context9.n = 40;
|
|
18545
18562
|
return call(messageQuery.loadPrevious);
|
|
18546
|
-
case
|
|
18563
|
+
case 40:
|
|
18547
18564
|
result = _context9.v;
|
|
18548
18565
|
if (!(result.messages.length === 50)) {
|
|
18549
|
-
_context9.n =
|
|
18566
|
+
_context9.n = 42;
|
|
18550
18567
|
break;
|
|
18551
18568
|
}
|
|
18552
18569
|
messageQuery.limit = MESSAGES_MAX_LENGTH - 50;
|
|
18553
|
-
_context9.n =
|
|
18570
|
+
_context9.n = 41;
|
|
18554
18571
|
return call(messageQuery.loadPreviousMessageId, result.messages[0].id);
|
|
18555
|
-
case
|
|
18572
|
+
case 41:
|
|
18556
18573
|
_secondResult4 = _context9.v;
|
|
18557
18574
|
result.messages = [].concat(_secondResult4.messages, result.messages);
|
|
18558
18575
|
result.hasNext = _secondResult4.hasNext;
|
|
18559
|
-
case
|
|
18576
|
+
case 42:
|
|
18560
18577
|
result.messages.forEach(function (msg) {
|
|
18561
18578
|
updateMessageOnMap(channel.id, {
|
|
18562
18579
|
messageId: msg.id,
|
|
@@ -18564,15 +18581,15 @@ function getMessagesQuery(action) {
|
|
|
18564
18581
|
});
|
|
18565
18582
|
updateMessageOnAllMessages(msg.id, msg);
|
|
18566
18583
|
});
|
|
18567
|
-
_context9.n =
|
|
18584
|
+
_context9.n = 43;
|
|
18568
18585
|
return put(setMessagesHasPrevAC(result.hasNext));
|
|
18569
|
-
case
|
|
18570
|
-
_context9.n =
|
|
18586
|
+
case 43:
|
|
18587
|
+
_context9.n = 44;
|
|
18571
18588
|
return put(setMessagesHasNextAC(false));
|
|
18572
|
-
case
|
|
18589
|
+
case 44:
|
|
18573
18590
|
pendingMessages = getPendingMessages(channel.id);
|
|
18574
18591
|
if (!(pendingMessages && pendingMessages.length)) {
|
|
18575
|
-
_context9.n =
|
|
18592
|
+
_context9.n = 46;
|
|
18576
18593
|
break;
|
|
18577
18594
|
}
|
|
18578
18595
|
_messagesMap = {};
|
|
@@ -18582,40 +18599,40 @@ function getMessagesQuery(action) {
|
|
|
18582
18599
|
filteredPendingMessages = pendingMessages.filter(function (msg) {
|
|
18583
18600
|
return !_messagesMap[msg.tid || ''];
|
|
18584
18601
|
});
|
|
18585
|
-
_context9.n =
|
|
18602
|
+
_context9.n = 45;
|
|
18586
18603
|
return put(addMessagesAC(filteredPendingMessages, MESSAGE_LOAD_DIRECTION.NEXT));
|
|
18587
|
-
case
|
|
18604
|
+
case 45:
|
|
18588
18605
|
for (index = 0; index < filteredPendingMessages.length; index++) {
|
|
18589
18606
|
mes = filteredPendingMessages[index];
|
|
18590
18607
|
removePendingMessageFromMap(channel === null || channel === void 0 ? void 0 : channel.id, mes.tid || mes.id);
|
|
18591
18608
|
}
|
|
18592
|
-
case
|
|
18593
|
-
_context9.n =
|
|
18609
|
+
case 46:
|
|
18610
|
+
_context9.n = 48;
|
|
18594
18611
|
break;
|
|
18595
|
-
case
|
|
18612
|
+
case 47:
|
|
18596
18613
|
if (!channel.isMockChannel) {
|
|
18597
|
-
_context9.n =
|
|
18614
|
+
_context9.n = 48;
|
|
18598
18615
|
break;
|
|
18599
18616
|
}
|
|
18600
|
-
_context9.n =
|
|
18617
|
+
_context9.n = 48;
|
|
18601
18618
|
return put(setMessagesAC([]));
|
|
18602
|
-
case
|
|
18603
|
-
_context9.n =
|
|
18619
|
+
case 48:
|
|
18620
|
+
_context9.n = 50;
|
|
18604
18621
|
break;
|
|
18605
|
-
case
|
|
18606
|
-
_context9.p =
|
|
18622
|
+
case 49:
|
|
18623
|
+
_context9.p = 49;
|
|
18607
18624
|
_t9 = _context9.v;
|
|
18608
18625
|
log.error('error in message query', _t9);
|
|
18609
|
-
case
|
|
18610
|
-
_context9.p =
|
|
18611
|
-
_context9.n =
|
|
18626
|
+
case 50:
|
|
18627
|
+
_context9.p = 50;
|
|
18628
|
+
_context9.n = 51;
|
|
18612
18629
|
return put(setMessagesLoadingStateAC(LOADING_STATE.LOADED));
|
|
18613
|
-
case
|
|
18614
|
-
return _context9.f(
|
|
18615
|
-
case
|
|
18630
|
+
case 51:
|
|
18631
|
+
return _context9.f(50);
|
|
18632
|
+
case 52:
|
|
18616
18633
|
return _context9.a(2);
|
|
18617
18634
|
}
|
|
18618
|
-
}, _marked7$1, null, [[
|
|
18635
|
+
}, _marked7$1, null, [[0, 49, 50, 52]]);
|
|
18619
18636
|
}
|
|
18620
18637
|
function loadMoreMessages(action) {
|
|
18621
18638
|
var payload, limit, direction, channelId, messageId, hasNext, SceytChatClient, messageQueryBuilder, messageQuery, result, _t0;
|
|
@@ -20993,15 +21010,15 @@ var Channel = function Channel(_ref3) {
|
|
|
20993
21010
|
items: filteredItems,
|
|
20994
21011
|
isTyping: !!filteredItems.find(function (item) {
|
|
20995
21012
|
return item.typingState;
|
|
21013
|
+
}),
|
|
21014
|
+
isRecording: !!filteredItems.find(function (item) {
|
|
21015
|
+
return item.recordingState;
|
|
20996
21016
|
})
|
|
20997
21017
|
};
|
|
20998
21018
|
}, [typingOrRecordingIndicator]);
|
|
20999
|
-
var isTypingOrRecording = useMemo(function () {
|
|
21000
|
-
return typingOrRecording.items.length > 0;
|
|
21001
|
-
}, [typingOrRecording]);
|
|
21002
21019
|
var MessageText = useMemo(function () {
|
|
21003
21020
|
return /*#__PURE__*/React__default.createElement(ChannelMessageText, {
|
|
21004
|
-
isTypingOrRecording:
|
|
21021
|
+
isTypingOrRecording: (typingOrRecording === null || typingOrRecording === void 0 ? void 0 : typingOrRecording.isTyping) || (typingOrRecording === null || typingOrRecording === void 0 ? void 0 : typingOrRecording.isRecording),
|
|
21005
21022
|
user: user,
|
|
21006
21023
|
contactsMap: contactsMap,
|
|
21007
21024
|
getFromContacts: getFromContacts,
|
|
@@ -21015,7 +21032,7 @@ var Channel = function Channel(_ref3) {
|
|
|
21015
21032
|
lastMessage: lastMessage,
|
|
21016
21033
|
isDirectChannel: isDirectChannel
|
|
21017
21034
|
});
|
|
21018
|
-
}, [
|
|
21035
|
+
}, [typingOrRecording === null || typingOrRecording === void 0 ? void 0 : typingOrRecording.isTyping, typingOrRecording === null || typingOrRecording === void 0 ? void 0 : typingOrRecording.isRecording, draftMessageText, lastMessage, user, contactsMap, getFromContacts, lastMessageMetas, accentColor, typingOrRecording, channel, isDirectChannel]);
|
|
21019
21036
|
return /*#__PURE__*/React__default.createElement(Container$2, {
|
|
21020
21037
|
theme: theme,
|
|
21021
21038
|
selectedChannel: channel.id === activeChannel.id,
|
|
@@ -21058,9 +21075,9 @@ var Channel = function Channel(_ref3) {
|
|
|
21058
21075
|
unreadMentions: !!(channel.newMentionCount && channel.newMentionCount > 0),
|
|
21059
21076
|
fontSize: channelLastMessageFontSize,
|
|
21060
21077
|
height: channelLastMessageHeight
|
|
21061
|
-
},
|
|
21078
|
+
}, typingOrRecording !== null && typingOrRecording !== void 0 && typingOrRecording.isTyping || typingOrRecording !== null && typingOrRecording !== void 0 && typingOrRecording.isRecording ? !isDirectChannel ? (/*#__PURE__*/React__default.createElement(LastMessageAuthor, {
|
|
21062
21079
|
typing: typingOrRecording.isTyping,
|
|
21063
|
-
recording:
|
|
21080
|
+
recording: typingOrRecording.isRecording,
|
|
21064
21081
|
color: textPrimary
|
|
21065
21082
|
}, /*#__PURE__*/React__default.createElement("span", {
|
|
21066
21083
|
ref: messageAuthorRef
|
|
@@ -21078,11 +21095,11 @@ var Channel = function Channel(_ref3) {
|
|
|
21078
21095
|
color: textPrimary
|
|
21079
21096
|
}, /*#__PURE__*/React__default.createElement("span", {
|
|
21080
21097
|
ref: messageAuthorRef
|
|
21081
|
-
}, lastMessage.user.id === user.id ? 'You' : makeUsername(contactsMap && contactsMap[lastMessage.user.id], lastMessage.user, getFromContacts, true)))), !
|
|
21098
|
+
}, lastMessage.user.id === user.id ? 'You' : makeUsername(contactsMap && contactsMap[lastMessage.user.id], lastMessage.user, getFromContacts, true)))), !(typingOrRecording !== null && typingOrRecording !== void 0 && typingOrRecording.isTyping) && !(typingOrRecording !== null && typingOrRecording !== void 0 && typingOrRecording.isRecording) && (isDirectChannel ? !(typingOrRecording !== null && typingOrRecording !== void 0 && typingOrRecording.isTyping) && !(typingOrRecording !== null && typingOrRecording !== void 0 && typingOrRecording.isRecording) && (draftMessageText || lastMessage.user && lastMessage.state !== MESSAGE_STATUS.DELETE && (channel.lastReactedMessage && channel.newReactions && channel.newReactions[0] ? channel.newReactions[0].user && channel.newReactions[0].user.id === user.id : lastMessage.user.id === user.id)) : ((typingOrRecording === null || typingOrRecording === void 0 ? void 0 : typingOrRecording.isTyping) || (typingOrRecording === null || typingOrRecording === void 0 ? void 0 : typingOrRecording.isRecording)) && draftMessageText || lastMessage && lastMessage.state !== MESSAGE_STATUS.DELETE && lastMessage.type !== 'system') && (/*#__PURE__*/React__default.createElement(Points, {
|
|
21082
21099
|
color: draftMessageText && warningColor || textPrimary
|
|
21083
21100
|
}, ": ")), /*#__PURE__*/React__default.createElement(LastMessageText, {
|
|
21084
21101
|
color: textSecondary,
|
|
21085
|
-
withAttachments: !!(lastMessage && lastMessage.attachments && lastMessage.attachments.length && lastMessage.attachments[0].type !== attachmentTypes.link) && !
|
|
21102
|
+
withAttachments: !!(lastMessage && lastMessage.attachments && lastMessage.attachments.length && lastMessage.attachments[0].type !== attachmentTypes.link) && (!(typingOrRecording !== null && typingOrRecording !== void 0 && typingOrRecording.isTyping) || !(typingOrRecording !== null && typingOrRecording !== void 0 && typingOrRecording.isRecording)),
|
|
21086
21103
|
noBody: lastMessage && !lastMessage.body,
|
|
21087
21104
|
deletedMessage: lastMessage && lastMessage.state === MESSAGE_STATUS.DELETE
|
|
21088
21105
|
}, MessageText)))), /*#__PURE__*/React__default.createElement(ChannelStatus, {
|
|
@@ -21598,7 +21615,7 @@ var Container$4 = styled.div(_templateObject$8 || (_templateObject$8 = _taggedTe
|
|
|
21598
21615
|
}, function (props) {
|
|
21599
21616
|
return props.height ? props.height + "px" : '0px';
|
|
21600
21617
|
}, function (props) {
|
|
21601
|
-
return props.background + "
|
|
21618
|
+
return props.background + "66";
|
|
21602
21619
|
});
|
|
21603
21620
|
|
|
21604
21621
|
var _templateObject$9, _templateObject2$8, _templateObject3$5, _templateObject4$5, _templateObject5$3, _templateObject6$2, _templateObject7$2, _templateObject8$2, _templateObject9$2, _templateObject0$2, _templateObject1$2;
|
|
@@ -24042,7 +24059,7 @@ var Container$a = styled.div(_templateObject$j || (_templateObject$j = _taggedTe
|
|
|
24042
24059
|
}, function (props) {
|
|
24043
24060
|
return props.dateDividerTextColor;
|
|
24044
24061
|
}, function (props) {
|
|
24045
|
-
return props.dateDividerBackgroundColor + "
|
|
24062
|
+
return props.dateDividerBackgroundColor + "66";
|
|
24046
24063
|
}, function (props) {
|
|
24047
24064
|
return props.dateDividerBorderRadius || '14px';
|
|
24048
24065
|
}, function (props) {
|
|
@@ -24678,7 +24695,7 @@ var VolumeSlide = styled.input(_templateObject9$6 || (_templateObject9$6 = _tagg
|
|
|
24678
24695
|
var Progress = styled.input(_templateObject0$5 || (_templateObject0$5 = _taggedTemplateLiteralLoose(["\n -webkit-appearance: none;\n margin-right: 15px;\n width: 100%;\n height: 4px;\n background: rgba(255, 255, 255, 0.6);\n border-radius: 5px;\n background-image: linear-gradient(#fff, #fff);\n //background-size: 70% 100%;\n background-repeat: no-repeat;\n cursor: pointer;\n\n &::-webkit-slider-thumb {\n -webkit-appearance: none;\n height: 16px;\n width: 16px;\n border-radius: 50%;\n background: #fff;\n cursor: pointer;\n box-shadow: 0 0 2px 0 #555;\n transition: all 0.3s ease-in-out;\n }\n &::-moz-range-thumb {\n -webkit-appearance: none;\n height: 16px;\n width: 16px;\n border-radius: 50%;\n background: #fff;\n cursor: pointer;\n box-shadow: 0 0 2px 0 #555;\n transition: all 0.3s ease-in-out;\n }\n\n &::-ms-thumb {\n -webkit-appearance: none;\n height: 16px;\n width: 16px;\n border-radius: 50%;\n background: #fff;\n cursor: pointer;\n box-shadow: 0 0 2px 0 #555;\n transition: all 0.3s ease-in-out;\n }\n\n &::-webkit-slider-thumb:hover {\n background: #fff;\n }\n &::-moz-range-thumb:hover {\n background: #fff;\n }\n &::-ms-thumb:hover {\n background: #fff;\n }\n\n &::-webkit-slider-runnable-track {\n -webkit-appearance: none;\n box-shadow: none;\n border: none;\n background: transparent;\n transition: all 0.3s ease-in-out;\n }\n\n &::-moz-range-track {\n -webkit-appearance: none;\n box-shadow: none;\n border: none;\n background: transparent;\n transition: all 0.3s ease-in-out;\n }\n &::-ms-track {\n -webkit-appearance: none;\n box-shadow: none;\n border: none;\n background: transparent;\n transition: all 0.3s ease-in-out;\n }\n"])));
|
|
24679
24696
|
var FullScreenWrapper = styled.div(_templateObject1$3 || (_templateObject1$3 = _taggedTemplateLiteralLoose(["\n display: flex;\n margin-left: 16px;\n cursor: pointer;\n @media (max-width: 768px) {\n margin-left: 12px;\n & > svg {\n width: 18px;\n height: 18px;\n }\n }\n @media (max-width: 480px) {\n margin-left: auto;\n & > svg {\n width: 16px;\n height: 16px;\n }\n }\n"])));
|
|
24680
24697
|
|
|
24681
|
-
var _templateObject$l, _templateObject2$i, _templateObject3$e, _templateObject4$c, _templateObject5$a, _templateObject6$8, _templateObject7$7, _templateObject8$7, _templateObject9$7, _templateObject0$6;
|
|
24698
|
+
var _templateObject$l, _templateObject2$i, _templateObject3$e, _templateObject4$c, _templateObject5$a, _templateObject6$8, _templateObject7$7, _templateObject8$7, _templateObject9$7, _templateObject0$6, _templateObject1$4;
|
|
24682
24699
|
function ForwardMessagePopup(_ref) {
|
|
24683
24700
|
var title = _ref.title,
|
|
24684
24701
|
buttonText = _ref.buttonText,
|
|
@@ -24928,7 +24945,9 @@ function ForwardMessagePopup(_ref) {
|
|
|
24928
24945
|
backgroundColor: 'transparent',
|
|
24929
24946
|
checkedBackgroundColor: accentColor
|
|
24930
24947
|
}));
|
|
24931
|
-
})))
|
|
24948
|
+
}))), !searchedChannels.chats_groups.length && !searchedChannels.channels.length && (/*#__PURE__*/React__default.createElement(NoResults, {
|
|
24949
|
+
color: textSecondary
|
|
24950
|
+
}, "No channels found")))) : channels.map(function (channel) {
|
|
24932
24951
|
var _channel$metadata3;
|
|
24933
24952
|
var isDirectChannel = channel.type === DEFAULT_CHANNEL_TYPE.DIRECT;
|
|
24934
24953
|
var isSelfChannel = isDirectChannel && ((_channel$metadata3 = channel.metadata) === null || _channel$metadata3 === void 0 ? void 0 : _channel$metadata3.s);
|
|
@@ -25012,6 +25031,9 @@ var SelectedChannelName = styled.span(_templateObject9$7 || (_templateObject9$7
|
|
|
25012
25031
|
return props.color;
|
|
25013
25032
|
});
|
|
25014
25033
|
var StyledSubtractSvg$1 = styled(SvgCross)(_templateObject0$6 || (_templateObject0$6 = _taggedTemplateLiteralLoose(["\n cursor: pointer;\n margin-left: 4px;\n transform: translate(2px, 0);\n"])));
|
|
25034
|
+
var NoResults = styled.div(_templateObject1$4 || (_templateObject1$4 = _taggedTemplateLiteralLoose(["\n font-size: 15px;\n line-height: 16px;\n font-weight: 500;\n text-align: center;\n margin-top: 20px;\n color: ", ";\n"])), function (props) {
|
|
25035
|
+
return props.color;
|
|
25036
|
+
});
|
|
25015
25037
|
|
|
25016
25038
|
var _templateObject$m, _templateObject2$j;
|
|
25017
25039
|
var CustomRadio = function CustomRadio(_ref) {
|
|
@@ -25185,7 +25207,7 @@ var DeleteOptionItem = styled.div(_templateObject2$k || (_templateObject2$k = _t
|
|
|
25185
25207
|
return props.color;
|
|
25186
25208
|
});
|
|
25187
25209
|
|
|
25188
|
-
var _templateObject$o, _templateObject2$l, _templateObject3$f, _templateObject4$d, _templateObject5$b, _templateObject6$9, _templateObject7$8, _templateObject8$8, _templateObject9$8, _templateObject0$7, _templateObject1$
|
|
25210
|
+
var _templateObject$o, _templateObject2$l, _templateObject3$f, _templateObject4$d, _templateObject5$b, _templateObject6$9, _templateObject7$8, _templateObject8$8, _templateObject9$8, _templateObject0$7, _templateObject1$5, _templateObject10$2, _templateObject11$2, _templateObject12$2, _templateObject13$2;
|
|
25189
25211
|
var SliderPopup = function SliderPopup(_ref) {
|
|
25190
25212
|
var channel = _ref.channel,
|
|
25191
25213
|
setIsSliderOpen = _ref.setIsSliderOpen,
|
|
@@ -25572,7 +25594,7 @@ var SliderPopup = function SliderPopup(_ref) {
|
|
|
25572
25594
|
text: '',
|
|
25573
25595
|
styles: {
|
|
25574
25596
|
background: {
|
|
25575
|
-
fill: overlayBackground2 + "
|
|
25597
|
+
fill: overlayBackground2 + "66"
|
|
25576
25598
|
},
|
|
25577
25599
|
path: {
|
|
25578
25600
|
stroke: textOnPrimary,
|
|
@@ -25726,7 +25748,7 @@ var FileSize = styled.span(_templateObject9$8 || (_templateObject9$8 = _taggedTe
|
|
|
25726
25748
|
var UserName = styled.h4(_templateObject0$7 || (_templateObject0$7 = _taggedTemplateLiteralLoose(["\n margin: 0;\n color: ", ";\n font-weight: 500;\n font-size: 15px;\n line-height: 18px;\n letter-spacing: -0.2px;\n"])), function (props) {
|
|
25727
25749
|
return props.color;
|
|
25728
25750
|
});
|
|
25729
|
-
var ActionsWrapper = styled.div(_templateObject1$
|
|
25751
|
+
var ActionsWrapper = styled.div(_templateObject1$5 || (_templateObject1$5 = _taggedTemplateLiteralLoose(["\n display: flex;\n"])));
|
|
25730
25752
|
var IconWrapper = styled.span(_templateObject10$2 || (_templateObject10$2 = _taggedTemplateLiteralLoose(["\n display: flex;\n cursor: pointer;\n color: ", ";\n margin: ", ";\n\n & > svg {\n width: 28px;\n height: 28px;\n }\n\n ", "\n"])), function (props) {
|
|
25731
25753
|
return props.color;
|
|
25732
25754
|
}, function (props) {
|
|
@@ -25827,7 +25849,7 @@ var Container$c = styled.div(_templateObject$p || (_templateObject$p = _taggedTe
|
|
|
25827
25849
|
}, function (props) {
|
|
25828
25850
|
return props.textColor;
|
|
25829
25851
|
}, function (props) {
|
|
25830
|
-
return props.backgroundColor + "
|
|
25852
|
+
return props.backgroundColor + "66";
|
|
25831
25853
|
}, function (props) {
|
|
25832
25854
|
return props.border;
|
|
25833
25855
|
}, function (props) {
|
|
@@ -26875,7 +26897,7 @@ var VideoTime = styled.div(_templateObject2$o || (_templateObject2$o = _taggedTe
|
|
|
26875
26897
|
}, function (props) {
|
|
26876
26898
|
return props.isRepliedMessage ? '0 3px' : '4px 6px';
|
|
26877
26899
|
}, function (props) {
|
|
26878
|
-
return props.messageTimeBackgroundColor + "
|
|
26900
|
+
return props.messageTimeBackgroundColor + "66";
|
|
26879
26901
|
}, function (props) {
|
|
26880
26902
|
return props.color;
|
|
26881
26903
|
}, function (props) {
|
|
@@ -29071,7 +29093,7 @@ var Timer$1 = styled.div(_templateObject6$c || (_templateObject6$c = _taggedTemp
|
|
|
29071
29093
|
return props.color;
|
|
29072
29094
|
});
|
|
29073
29095
|
|
|
29074
|
-
var _templateObject$u, _templateObject2$q, _templateObject3$k, _templateObject4$h, _templateObject5$f, _templateObject6$d, _templateObject7$b, _templateObject8$a, _templateObject9$a, _templateObject0$9, _templateObject1$
|
|
29096
|
+
var _templateObject$u, _templateObject2$q, _templateObject3$k, _templateObject4$h, _templateObject5$f, _templateObject6$d, _templateObject7$b, _templateObject8$a, _templateObject9$a, _templateObject0$9, _templateObject1$6, _templateObject10$3, _templateObject11$3;
|
|
29075
29097
|
var Attachment = function Attachment(_ref) {
|
|
29076
29098
|
var attachment = _ref.attachment,
|
|
29077
29099
|
_ref$isPreview = _ref.isPreview,
|
|
@@ -29489,7 +29511,7 @@ var Attachment = function Attachment(_ref) {
|
|
|
29489
29511
|
text: '',
|
|
29490
29512
|
styles: {
|
|
29491
29513
|
background: {
|
|
29492
|
-
fill: overlayBackground2 + "
|
|
29514
|
+
fill: overlayBackground2 + "66"
|
|
29493
29515
|
},
|
|
29494
29516
|
path: {
|
|
29495
29517
|
stroke: textOnPrimary,
|
|
@@ -29539,7 +29561,7 @@ var Attachment = function Attachment(_ref) {
|
|
|
29539
29561
|
text: '',
|
|
29540
29562
|
styles: {
|
|
29541
29563
|
background: {
|
|
29542
|
-
fill: overlayBackground2 + "
|
|
29564
|
+
fill: overlayBackground2 + "66"
|
|
29543
29565
|
},
|
|
29544
29566
|
path: {
|
|
29545
29567
|
stroke: textOnPrimary,
|
|
@@ -29646,7 +29668,7 @@ var Attachment = function Attachment(_ref) {
|
|
|
29646
29668
|
text: '',
|
|
29647
29669
|
styles: {
|
|
29648
29670
|
background: {
|
|
29649
|
-
fill: overlayBackground2 + "
|
|
29671
|
+
fill: overlayBackground2 + "66"
|
|
29650
29672
|
},
|
|
29651
29673
|
path: {
|
|
29652
29674
|
stroke: textOnPrimary,
|
|
@@ -29738,7 +29760,7 @@ var AttachmentSize = styled.span(_templateObject0$9 || (_templateObject0$9 = _ta
|
|
|
29738
29760
|
}, function (props) {
|
|
29739
29761
|
return props.errorColor;
|
|
29740
29762
|
});
|
|
29741
|
-
var AttachmentFileInfo = styled.div(_templateObject1$
|
|
29763
|
+
var AttachmentFileInfo = styled.div(_templateObject1$6 || (_templateObject1$6 = _taggedTemplateLiteralLoose(["\n margin-left: 12px;\n ", "\n"])), function (props) {
|
|
29742
29764
|
return props.isPreview && "line-height: 14px;\n max-width: calc(100% - 44px);\n ";
|
|
29743
29765
|
});
|
|
29744
29766
|
var AttachmentImg$1 = styled.img(_templateObject10$3 || (_templateObject10$3 = _taggedTemplateLiteralLoose(["\n position: ", ";\n border-radius: ", ";\n padding: ", ";\n box-sizing: border-box;\n max-width: 100%;\n max-height: ", ";\n width: ", ";\n height: ", ";\n min-height: ", ";\n min-width: ", ";\n object-fit: cover;\n visibility: ", ";\n z-index: 2;\n"])), function (props) {
|
|
@@ -30818,7 +30840,7 @@ var MessageStatusAndTime = function MessageStatusAndTime(_ref) {
|
|
|
30818
30840
|
}))));
|
|
30819
30841
|
};
|
|
30820
30842
|
var MessageStatusAndTime$1 = /*#__PURE__*/React__default.memo(MessageStatusAndTime, function (prevProps, nextProps) {
|
|
30821
|
-
return prevProps.message.state === nextProps.message.state && prevProps.message.deliveryStatus === nextProps.message.deliveryStatus && prevProps.message.createdAt === nextProps.message.createdAt && prevProps.showMessageTimeAndStatusOnlyOnHover === nextProps.showMessageTimeAndStatusOnlyOnHover && prevProps.messageStatusSize === nextProps.messageStatusSize && prevProps.messageStatusColor === nextProps.messageStatusColor && prevProps.messageReadStatusColor === nextProps.messageReadStatusColor && prevProps.messageStateFontSize === nextProps.messageStateFontSize && prevProps.messageStateColor === nextProps.messageStateColor && prevProps.messageTimeFontSize === nextProps.messageTimeFontSize && prevProps.messageStatusAndTimeLineHeight === nextProps.messageStatusAndTimeLineHeight && prevProps.messageTimeColor === nextProps.messageTimeColor && prevProps.messageTimeVisible === nextProps.messageTimeVisible && prevProps.messageStatusVisible === nextProps.messageStatusVisible && prevProps.ownMessageOnRightSide === nextProps.ownMessageOnRightSide && prevProps.bottomOfMessage === nextProps.bottomOfMessage && prevProps.marginBottom === nextProps.marginBottom && prevProps.messageTimeColorOnAttachment === nextProps.messageTimeColorOnAttachment;
|
|
30843
|
+
return prevProps.message.state === nextProps.message.state && prevProps.message.deliveryStatus === nextProps.message.deliveryStatus && prevProps.message.createdAt === nextProps.message.createdAt && prevProps.showMessageTimeAndStatusOnlyOnHover === nextProps.showMessageTimeAndStatusOnlyOnHover && prevProps.messageStatusSize === nextProps.messageStatusSize && prevProps.messageStatusColor === nextProps.messageStatusColor && prevProps.messageReadStatusColor === nextProps.messageReadStatusColor && prevProps.messageStateFontSize === nextProps.messageStateFontSize && prevProps.messageStateColor === nextProps.messageStateColor && prevProps.messageTimeFontSize === nextProps.messageTimeFontSize && prevProps.messageStatusAndTimeLineHeight === nextProps.messageStatusAndTimeLineHeight && prevProps.messageTimeColor === nextProps.messageTimeColor && prevProps.messageTimeVisible === nextProps.messageTimeVisible && prevProps.messageStatusVisible === nextProps.messageStatusVisible && prevProps.ownMessageOnRightSide === nextProps.ownMessageOnRightSide && prevProps.bottomOfMessage === nextProps.bottomOfMessage && prevProps.marginBottom === nextProps.marginBottom && prevProps.messageTimeColorOnAttachment === nextProps.messageTimeColorOnAttachment && prevProps.withAttachment === nextProps.withAttachment;
|
|
30822
30844
|
});
|
|
30823
30845
|
var MessageStatus = styled.span(_templateObject$z || (_templateObject$z = _taggedTemplateLiteralLoose(["\n display: inline-flex;\n align-items: center;\n margin-left: 4px;\n text-align: right;\n height: ", ";\n\n & > svg {\n height: 16px;\n width: 16px;\n }\n"])), function (props) {
|
|
30824
30846
|
return props.height || '14px';
|
|
@@ -30837,7 +30859,7 @@ var MessageStatusAndTimeContainer = styled.span(_templateObject3$o || (_template
|
|
|
30837
30859
|
}, function (props) {
|
|
30838
30860
|
return props.withAttachment && '4px 6px';
|
|
30839
30861
|
}, function (props) {
|
|
30840
|
-
return props.withAttachment && !props.fileAttachment && props.messageTimeBackgroundColor + "
|
|
30862
|
+
return props.withAttachment && !props.fileAttachment && props.messageTimeBackgroundColor + "66";
|
|
30841
30863
|
}, function (props) {
|
|
30842
30864
|
return props.lineHeight || '14px';
|
|
30843
30865
|
}, function (props) {
|
|
@@ -30893,7 +30915,7 @@ var OGMetadata = function OGMetadata(_ref) {
|
|
|
30893
30915
|
var queryBuilder = new client.MessageLinkOGQueryBuilder(url);
|
|
30894
30916
|
return Promise.resolve(queryBuilder.build()).then(function (query) {
|
|
30895
30917
|
return Promise.resolve(query.loadOGData()).then(function (metadata) {
|
|
30896
|
-
return Promise.resolve(storeMetadata(url.replace('https://', ''), metadata)).then(function () {
|
|
30918
|
+
return Promise.resolve(storeMetadata(url.replace('https://', '').replace('http://', ''), metadata)).then(function () {
|
|
30897
30919
|
setMetadata(metadata);
|
|
30898
30920
|
});
|
|
30899
30921
|
});
|
|
@@ -30915,7 +30937,7 @@ var OGMetadata = function OGMetadata(_ref) {
|
|
|
30915
30937
|
if (attachment !== null && attachment !== void 0 && attachment.id && !metadata) {
|
|
30916
30938
|
var url = attachment === null || attachment === void 0 ? void 0 : attachment.url;
|
|
30917
30939
|
if (url) {
|
|
30918
|
-
getMetadata(url.replace('https://', '')).then(function (cachedMetadata) {
|
|
30940
|
+
getMetadata(url.replace('https://', '').replace('http://', '')).then(function (cachedMetadata) {
|
|
30919
30941
|
try {
|
|
30920
30942
|
if (cachedMetadata) {
|
|
30921
30943
|
setMetadata(cachedMetadata);
|
|
@@ -31483,7 +31505,7 @@ var FrequentlyEmojisContainer = styled.div(_templateObject5$i || (_templateObjec
|
|
|
31483
31505
|
return props.rtlDirection && '0';
|
|
31484
31506
|
});
|
|
31485
31507
|
|
|
31486
|
-
var _templateObject$C, _templateObject2$x, _templateObject3$r, _templateObject4$n, _templateObject5$j, _templateObject6$g, _templateObject7$e, _templateObject8$d, _templateObject9$b, _templateObject0$a, _templateObject1$
|
|
31508
|
+
var _templateObject$C, _templateObject2$x, _templateObject3$r, _templateObject4$n, _templateObject5$j, _templateObject6$g, _templateObject7$e, _templateObject8$d, _templateObject9$b, _templateObject0$a, _templateObject1$7, _templateObject10$4, _templateObject11$4, _templateObject12$3;
|
|
31487
31509
|
var Message$1 = function Message(_ref) {
|
|
31488
31510
|
var message = _ref.message,
|
|
31489
31511
|
channel = _ref.channel,
|
|
@@ -31812,7 +31834,6 @@ var Message$1 = function Message(_ref) {
|
|
|
31812
31834
|
if (isVisible && message.incoming && !(message.userMarkers && message.userMarkers.length && message.userMarkers.find(function (marker) {
|
|
31813
31835
|
return marker.name === MESSAGE_DELIVERY_STATUS.READ;
|
|
31814
31836
|
})) && channel.newMessageCount && channel.newMessageCount > 0 && connectionStatus === CONNECTION_STATUS.CONNECTED) {
|
|
31815
|
-
log.info('send displayed marker for message ... ', message);
|
|
31816
31837
|
dispatch(markMessagesAsReadAC(channel.id, [message.id]));
|
|
31817
31838
|
}
|
|
31818
31839
|
};
|
|
@@ -32261,7 +32282,7 @@ var ReactionsContainer = styled.div(_templateObject9$b || (_templateObject9$b =
|
|
|
32261
32282
|
var MessageReactionsCont = styled.div(_templateObject0$a || (_templateObject0$a = _taggedTemplateLiteralLoose(["\n position: relative;\n display: inline-flex;\n max-width: 300px;\n direction: ", ";\n cursor: pointer;\n"])), function (props) {
|
|
32262
32283
|
return props.rtlDirection && 'ltr';
|
|
32263
32284
|
});
|
|
32264
|
-
var MessageStatus$1 = styled.span(_templateObject1$
|
|
32285
|
+
var MessageStatus$1 = styled.span(_templateObject1$7 || (_templateObject1$7 = _taggedTemplateLiteralLoose(["\n display: inline-flex;\n align-items: center;\n margin-left: 4px;\n text-align: right;\n height: ", ";\n & > svg {\n height: 16px;\n width: 16px;\n }\n"])), function (props) {
|
|
32265
32286
|
return props.height || '14px';
|
|
32266
32287
|
});
|
|
32267
32288
|
var HiddenMessageTime$1 = styled.span(_templateObject10$4 || (_templateObject10$4 = _taggedTemplateLiteralLoose(["\n display: ", ";\n font-weight: 400;\n font-size: ", ";\n color: ", ";\n"])), function (props) {
|
|
@@ -32306,7 +32327,7 @@ var HiddenMessageProperty;
|
|
|
32306
32327
|
HiddenMessageProperty["hideAfterSendMessage"] = "hideAfterSendMessage";
|
|
32307
32328
|
})(HiddenMessageProperty || (HiddenMessageProperty = {}));
|
|
32308
32329
|
|
|
32309
|
-
var _templateObject$D, _templateObject2$y, _templateObject3$s, _templateObject4$o, _templateObject5$k, _templateObject6$h, _templateObject7$f, _templateObject8$e, _templateObject9$c, _templateObject0$b, _templateObject1$
|
|
32330
|
+
var _templateObject$D, _templateObject2$y, _templateObject3$s, _templateObject4$o, _templateObject5$k, _templateObject6$h, _templateObject7$f, _templateObject8$e, _templateObject9$c, _templateObject0$b, _templateObject1$8;
|
|
32310
32331
|
var loadFromServer = false;
|
|
32311
32332
|
var loadDirection = '';
|
|
32312
32333
|
var nextDisable = false;
|
|
@@ -33316,7 +33337,7 @@ var MessageTopDate = styled.div(_templateObject4$o || (_templateObject4$o = _tag
|
|
|
33316
33337
|
}, function (props) {
|
|
33317
33338
|
return props.dateDividerTextColor;
|
|
33318
33339
|
}, function (props) {
|
|
33319
|
-
return props.dateDividerBackgroundColor + "
|
|
33340
|
+
return props.dateDividerBackgroundColor + "66";
|
|
33320
33341
|
}, function (props) {
|
|
33321
33342
|
return props.dateDividerBorder;
|
|
33322
33343
|
}, function (props) {
|
|
@@ -33356,7 +33377,7 @@ var NoMessagesContainer = styled.div(_templateObject9$c || (_templateObject9$c =
|
|
|
33356
33377
|
var NoMessagesTitle = styled.h4(_templateObject0$b || (_templateObject0$b = _taggedTemplateLiteralLoose(["\n margin: 12px 0 8px;\n font-family: Inter, sans-serif;\n text-align: center;\n font-size: 20px;\n font-style: normal;\n font-weight: 500;\n line-height: 24px;\n color: ", ";\n"])), function (props) {
|
|
33357
33378
|
return props.color;
|
|
33358
33379
|
});
|
|
33359
|
-
var NoMessagesText = styled.p(_templateObject1$
|
|
33380
|
+
var NoMessagesText = styled.p(_templateObject1$8 || (_templateObject1$8 = _taggedTemplateLiteralLoose(["\n margin: 0;\n text-align: center;\n font-feature-settings:\n 'clig' off,\n 'liga' off;\n font-family: Inter, sans-serif;\n font-size: 15px;\n font-style: normal;\n font-weight: 400;\n line-height: 20px;\n color: ", ";\n"])), function (props) {
|
|
33360
33381
|
return props.color;
|
|
33361
33382
|
});
|
|
33362
33383
|
|
|
@@ -35360,19 +35381,19 @@ var AudioRecord = function AudioRecord(_ref) {
|
|
|
35360
35381
|
}, [currentRecordedFile]);
|
|
35361
35382
|
var dispatch = useDispatch();
|
|
35362
35383
|
var handleStartRecording = function handleStartRecording() {
|
|
35363
|
-
dispatch(sendRecordingAC(true));
|
|
35384
|
+
dispatch(sendRecordingAC(true, currentChannelId));
|
|
35364
35385
|
if (sendingInterval) {
|
|
35365
35386
|
clearInterval(sendingInterval);
|
|
35366
35387
|
setSendingInterval(null);
|
|
35367
35388
|
return;
|
|
35368
35389
|
}
|
|
35369
35390
|
var interval = setInterval(function () {
|
|
35370
|
-
dispatch(sendRecordingAC(true));
|
|
35391
|
+
dispatch(sendRecordingAC(true, currentChannelId));
|
|
35371
35392
|
}, 1000);
|
|
35372
35393
|
setSendingInterval(interval);
|
|
35373
35394
|
};
|
|
35374
35395
|
var handleStopRecording = function handleStopRecording() {
|
|
35375
|
-
dispatch(sendRecordingAC(false));
|
|
35396
|
+
dispatch(sendRecordingAC(false, currentChannelId));
|
|
35376
35397
|
if (sendingInterval) {
|
|
35377
35398
|
clearInterval(sendingInterval);
|
|
35378
35399
|
setSendingInterval(null);
|
|
@@ -35526,10 +35547,9 @@ var AudioRecord = function AudioRecord(_ref) {
|
|
|
35526
35547
|
return Promise.resolve(_catch(function () {
|
|
35527
35548
|
var _wavesurfer$current3;
|
|
35528
35549
|
function _temp3(_result3) {
|
|
35550
|
+
var _wavesurfer$current$i, _wavesurfer$current$i2;
|
|
35529
35551
|
if (_exit) return _result3;
|
|
35530
|
-
|
|
35531
|
-
return;
|
|
35532
|
-
}
|
|
35552
|
+
setCurrentTime(((_wavesurfer$current$i = wavesurfer.current[id]) === null || _wavesurfer$current$i === void 0 ? void 0 : (_wavesurfer$current$i2 = _wavesurfer$current$i.decodedData) === null || _wavesurfer$current$i2 === void 0 ? void 0 : _wavesurfer$current$i2.duration) || 0);
|
|
35533
35553
|
wavesurfer.current[id].on('ready', function () {
|
|
35534
35554
|
setRecordingIsReadyToPlay(true);
|
|
35535
35555
|
var audioDuration = wavesurfer.current[id].getDuration();
|
|
@@ -35641,7 +35661,6 @@ var AudioRecord = function AudioRecord(_ref) {
|
|
|
35641
35661
|
recorder.stop().getMp3().then(function (_ref4) {
|
|
35642
35662
|
var buffer = _ref4[0],
|
|
35643
35663
|
blob = _ref4[1];
|
|
35644
|
-
setCurrentTime(0);
|
|
35645
35664
|
var file = new File(buffer, 'record.mp3', {
|
|
35646
35665
|
type: blob.type,
|
|
35647
35666
|
lastModified: Date.now()
|
|
@@ -35707,15 +35726,12 @@ var AudioRecord = function AudioRecord(_ref) {
|
|
|
35707
35726
|
if ((_wavesurfer$current5 = wavesurfer.current) !== null && _wavesurfer$current5 !== void 0 && _wavesurfer$current5[cId || currentChannelId]) {
|
|
35708
35727
|
if (!wavesurfer.current[cId || currentChannelId].isPlaying()) {
|
|
35709
35728
|
setPlayAudio(true);
|
|
35710
|
-
handleStartRecording();
|
|
35711
35729
|
intervalRef.current[cId || currentChannelId] = setInterval(function () {
|
|
35712
35730
|
var currentTime = wavesurfer.current[cId || currentChannelId].getCurrentTime();
|
|
35713
35731
|
if (currentTime >= 0) {
|
|
35714
35732
|
setCurrentTime(currentTime);
|
|
35715
35733
|
}
|
|
35716
35734
|
}, 10);
|
|
35717
|
-
} else {
|
|
35718
|
-
handleStopRecording();
|
|
35719
35735
|
}
|
|
35720
35736
|
wavesurfer.current[cId || currentChannelId].playPause();
|
|
35721
35737
|
}
|
|
@@ -35831,6 +35847,7 @@ var AudioRecord = function AudioRecord(_ref) {
|
|
|
35831
35847
|
setRecordedFile(audioRecording || null);
|
|
35832
35848
|
setRecordingIsReadyToPlay(!!audioRecording);
|
|
35833
35849
|
}
|
|
35850
|
+
handleStopRecording();
|
|
35834
35851
|
setCurrentChannelId(channelId);
|
|
35835
35852
|
}, [channelId]);
|
|
35836
35853
|
return /*#__PURE__*/React__default.createElement(Container$j, {
|
|
@@ -35945,7 +35962,7 @@ var RecordingAnimation = function RecordingAnimation(_ref2) {
|
|
|
35945
35962
|
}));
|
|
35946
35963
|
};
|
|
35947
35964
|
|
|
35948
|
-
var _templateObject$J, _templateObject2$E, _templateObject3$x, _templateObject4$s, _templateObject5$o, _templateObject6$k, _templateObject7$i, _templateObject8$g, _templateObject9$d, _templateObject0$c, _templateObject1$
|
|
35965
|
+
var _templateObject$J, _templateObject2$E, _templateObject3$x, _templateObject4$s, _templateObject5$o, _templateObject6$k, _templateObject7$i, _templateObject8$g, _templateObject9$d, _templateObject0$c, _templateObject1$9, _templateObject10$5, _templateObject11$5, _templateObject12$4, _templateObject13$3, _templateObject14$2, _templateObject15$2, _templateObject16$2, _templateObject17$2, _templateObject18$2, _templateObject19$2, _templateObject20$2, _templateObject21$1, _templateObject22$1, _templateObject23$1, _templateObject24$1, _templateObject25$1, _templateObject26$1, _templateObject27$1, _templateObject28$1, _templateObject29$1, _templateObject30$1, _templateObject31$1, _templateObject32$1, _templateObject33$1, _templateObject34$1;
|
|
35949
35966
|
function AutoFocusPlugin(_ref) {
|
|
35950
35967
|
var messageForReply = _ref.messageForReply;
|
|
35951
35968
|
var _useLexicalComposerCo = useLexicalComposerContext(),
|
|
@@ -36854,7 +36871,7 @@ var SendMessageInput = function SendMessageInput(_ref3) {
|
|
|
36854
36871
|
}
|
|
36855
36872
|
var dataFromDb;
|
|
36856
36873
|
var _temp11 = _catch(function () {
|
|
36857
|
-
return Promise.resolve(
|
|
36874
|
+
return Promise.resolve(getDataFromDB(DB_NAMES.FILES_STORAGE, DB_STORE_NAMES.ATTACHMENTS, checksumHash, 'checksum')).then(function (_getDataFromDB) {
|
|
36858
36875
|
dataFromDb = _getDataFromDB;
|
|
36859
36876
|
});
|
|
36860
36877
|
}, function (e) {
|
|
@@ -37194,16 +37211,21 @@ var SendMessageInput = function SendMessageInput(_ref3) {
|
|
|
37194
37211
|
}
|
|
37195
37212
|
};
|
|
37196
37213
|
}, []);
|
|
37197
|
-
var
|
|
37198
|
-
|
|
37214
|
+
var typingOrRecording = useMemo(function () {
|
|
37215
|
+
var dataValues = typingOrRecordingIndicator ? Object.values(typingOrRecordingIndicator) : [];
|
|
37216
|
+
var filteredItems = dataValues.filter(function (item) {
|
|
37199
37217
|
return item.typingState || item.recordingState;
|
|
37200
|
-
}) : [];
|
|
37201
|
-
}, [typingOrRecordingIndicator]);
|
|
37202
|
-
var isTyping = useMemo(function () {
|
|
37203
|
-
return !!filteredTypingOrRecordingIndicator.find(function (item) {
|
|
37204
|
-
return item.typingState;
|
|
37205
37218
|
});
|
|
37206
|
-
|
|
37219
|
+
return {
|
|
37220
|
+
items: filteredItems,
|
|
37221
|
+
isTyping: !!filteredItems.find(function (item) {
|
|
37222
|
+
return item.typingState;
|
|
37223
|
+
}),
|
|
37224
|
+
isRecording: !!filteredItems.find(function (item) {
|
|
37225
|
+
return item.recordingState;
|
|
37226
|
+
})
|
|
37227
|
+
};
|
|
37228
|
+
}, [typingOrRecordingIndicator]);
|
|
37207
37229
|
var formatTypingIndicatorText = function formatTypingIndicatorText(users, maxShownUsers) {
|
|
37208
37230
|
if (maxShownUsers === void 0) {
|
|
37209
37231
|
maxShownUsers = 3;
|
|
@@ -37212,7 +37234,7 @@ var SendMessageInput = function SendMessageInput(_ref3) {
|
|
|
37212
37234
|
if (users.length === 1) {
|
|
37213
37235
|
var _user = users[0];
|
|
37214
37236
|
var userName = makeUsername(getFromContacts && _user.from && contactsMap[_user.from.id], _user.from, getFromContacts);
|
|
37215
|
-
return "" + userName + (isTyping ? activeChannel.type === DEFAULT_CHANNEL_TYPE.DIRECT ? ' is typing' : '' : activeChannel.type === DEFAULT_CHANNEL_TYPE.DIRECT ? ' is recording' : '');
|
|
37237
|
+
return "" + userName + (typingOrRecording !== null && typingOrRecording !== void 0 && typingOrRecording.isTyping ? activeChannel.type === DEFAULT_CHANNEL_TYPE.DIRECT ? ' is typing' : '' : activeChannel.type === DEFAULT_CHANNEL_TYPE.DIRECT ? ' is recording' : '');
|
|
37216
37238
|
}
|
|
37217
37239
|
if (users.length <= maxShownUsers) {
|
|
37218
37240
|
var userNames = users.map(function (user) {
|
|
@@ -37282,8 +37304,8 @@ var SendMessageInput = function SendMessageInput(_ref3) {
|
|
|
37282
37304
|
}, "Join")) : (activeChannel.type === DEFAULT_CHANNEL_TYPE.BROADCAST || activeChannel.type === DEFAULT_CHANNEL_TYPE.PUBLIC ? !(activeChannel.userRole === 'admin' || activeChannel.userRole === 'owner') : activeChannel.type !== DEFAULT_CHANNEL_TYPE.DIRECT && !checkActionPermission('sendMessage')) ? (/*#__PURE__*/React__default.createElement(ReadOnlyCont, {
|
|
37283
37305
|
color: textPrimary,
|
|
37284
37306
|
iconColor: accentColor
|
|
37285
|
-
}, /*#__PURE__*/React__default.createElement(SvgEye, null), " Read only")) : (/*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(TypingIndicator$1, null,
|
|
37286
|
-
from:
|
|
37307
|
+
}, /*#__PURE__*/React__default.createElement(SvgEye, null), " Read only")) : (/*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(TypingIndicator$1, null, (typingOrRecording === null || typingOrRecording === void 0 ? void 0 : typingOrRecording.items.length) > 0 && (CustomTypingIndicator ? (/*#__PURE__*/React__default.createElement(CustomTypingIndicator, {
|
|
37308
|
+
from: typingOrRecording === null || typingOrRecording === void 0 ? void 0 : typingOrRecording.items.map(function (item) {
|
|
37287
37309
|
return {
|
|
37288
37310
|
id: item.from.id,
|
|
37289
37311
|
name: item.from.name,
|
|
@@ -37293,7 +37315,7 @@ var SendMessageInput = function SendMessageInput(_ref3) {
|
|
|
37293
37315
|
})
|
|
37294
37316
|
})) : (/*#__PURE__*/React__default.createElement(TypingIndicatorCont, null, /*#__PURE__*/React__default.createElement(TypingFrom, {
|
|
37295
37317
|
color: textSecondary
|
|
37296
|
-
}, formatTypingIndicatorText(
|
|
37318
|
+
}, formatTypingIndicatorText(typingOrRecording === null || typingOrRecording === void 0 ? void 0 : typingOrRecording.items, 3)), typingOrRecording !== null && typingOrRecording !== void 0 && typingOrRecording.isTyping ? (/*#__PURE__*/React__default.createElement(TypingAnimation, {
|
|
37297
37319
|
borderColor: iconInactive
|
|
37298
37320
|
}, /*#__PURE__*/React__default.createElement(DotOne, null), /*#__PURE__*/React__default.createElement(DotTwo, null), /*#__PURE__*/React__default.createElement(DotThree, null))) : (/*#__PURE__*/React__default.createElement(RecordingAnimation, {
|
|
37299
37321
|
borderColor: iconInactive
|
|
@@ -37564,7 +37586,7 @@ var AddAttachmentIcon = styled.span(_templateObject0$c || (_templateObject0$c =
|
|
|
37564
37586
|
}, function (props) {
|
|
37565
37587
|
return props.hoverColor;
|
|
37566
37588
|
});
|
|
37567
|
-
var SendMessageInputContainer = styled.div(_templateObject1$
|
|
37589
|
+
var SendMessageInputContainer = styled.div(_templateObject1$9 || (_templateObject1$9 = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: flex-end;\n justify-content: space-between;\n position: relative;\n min-height: ", ";\n box-sizing: border-box;\n border-radius: ", ";\n\n & .dropdown-trigger.open {\n color: #ccc;\n\n & ", " {\n & > svg {\n color: ", ";\n }\n ;\n }\n }\n}\n"])), function (props) {
|
|
37568
37590
|
return props.minHeight || '36px';
|
|
37569
37591
|
}, function (props) {
|
|
37570
37592
|
return props.messageForReply ? '0 0 4px 4px' : '4px';
|
|
@@ -37860,7 +37882,7 @@ function SvgUnpin(props) {
|
|
|
37860
37882
|
})));
|
|
37861
37883
|
}
|
|
37862
37884
|
|
|
37863
|
-
var _templateObject$K, _templateObject2$F, _templateObject3$y, _templateObject4$t, _templateObject5$p, _templateObject6$l, _templateObject7$j, _templateObject8$h, _templateObject9$e, _templateObject0$d, _templateObject1$
|
|
37885
|
+
var _templateObject$K, _templateObject2$F, _templateObject3$y, _templateObject4$t, _templateObject5$p, _templateObject6$l, _templateObject7$j, _templateObject8$h, _templateObject9$e, _templateObject0$d, _templateObject1$a, _templateObject10$6, _templateObject11$6, _templateObject12$5, _templateObject13$4, _templateObject14$3, _templateObject15$3, _templateObject16$3;
|
|
37864
37886
|
var Actions = function Actions(_ref) {
|
|
37865
37887
|
var _channel$metadata;
|
|
37866
37888
|
var setActionsHeight = _ref.setActionsHeight,
|
|
@@ -38339,7 +38361,7 @@ var DefaultStarIcon = styled(SvgStar)(_templateObject7$j || (_templateObject7$j
|
|
|
38339
38361
|
var DefaultUnpinIcon = styled(SvgUnpin)(_templateObject8$h || (_templateObject8$h = _taggedTemplateLiteralLoose([""])));
|
|
38340
38362
|
var DefaultPinIcon = styled(SvgPin)(_templateObject9$e || (_templateObject9$e = _taggedTemplateLiteralLoose([""])));
|
|
38341
38363
|
var DefaultMarkAsRead = styled(SvgMarkAsRead)(_templateObject0$d || (_templateObject0$d = _taggedTemplateLiteralLoose([""])));
|
|
38342
|
-
var DefaultMarkAsUnRead = styled(SvgMarkAsUnRead)(_templateObject1$
|
|
38364
|
+
var DefaultMarkAsUnRead = styled(SvgMarkAsUnRead)(_templateObject1$a || (_templateObject1$a = _taggedTemplateLiteralLoose([""])));
|
|
38343
38365
|
var DefaultBlockIcon = styled(SvgBlockChannel)(_templateObject10$6 || (_templateObject10$6 = _taggedTemplateLiteralLoose([""])));
|
|
38344
38366
|
var DefaultReportIcon = styled(SvgReport)(_templateObject11$6 || (_templateObject11$6 = _taggedTemplateLiteralLoose([""])));
|
|
38345
38367
|
var DefaultClearIcon = styled(SvgClear)(_templateObject12$5 || (_templateObject12$5 = _taggedTemplateLiteralLoose([""])));
|
|
@@ -39063,7 +39085,7 @@ var Files = function Files(_ref) {
|
|
|
39063
39085
|
text: '',
|
|
39064
39086
|
styles: {
|
|
39065
39087
|
background: {
|
|
39066
|
-
fill: overlayBackground2 + "
|
|
39088
|
+
fill: overlayBackground2 + "66"
|
|
39067
39089
|
},
|
|
39068
39090
|
path: {
|
|
39069
39091
|
stroke: accentColor,
|
|
@@ -39885,7 +39907,7 @@ var EditChannel = function EditChannel(_ref) {
|
|
|
39885
39907
|
})));
|
|
39886
39908
|
};
|
|
39887
39909
|
|
|
39888
|
-
var _templateObject$V, _templateObject2$O, _templateObject3$F, _templateObject4$z, _templateObject5$u, _templateObject6$p, _templateObject7$n, _templateObject8$l, _templateObject9$g, _templateObject0$e, _templateObject1$
|
|
39910
|
+
var _templateObject$V, _templateObject2$O, _templateObject3$F, _templateObject4$z, _templateObject5$u, _templateObject6$p, _templateObject7$n, _templateObject8$l, _templateObject9$g, _templateObject0$e, _templateObject1$b, _templateObject10$7;
|
|
39889
39911
|
var Details = function Details(_ref) {
|
|
39890
39912
|
var _activeChannel$metada;
|
|
39891
39913
|
var detailsTitleText = _ref.detailsTitleText,
|
|
@@ -40317,7 +40339,7 @@ var ChannelName$1 = styled(SectionHeader)(_templateObject0$e || (_templateObject
|
|
|
40317
40339
|
}, function (props) {
|
|
40318
40340
|
return props.uppercase && 'uppercase';
|
|
40319
40341
|
});
|
|
40320
|
-
var ChannelNameWrapper = styled.div(_templateObject1$
|
|
40342
|
+
var ChannelNameWrapper = styled.div(_templateObject1$b || (_templateObject1$b = _taggedTemplateLiteralLoose(["\n display: flex;\n justify-content: center;\n"])));
|
|
40321
40343
|
var EditButton = styled.span(_templateObject10$7 || (_templateObject10$7 = _taggedTemplateLiteralLoose(["\n margin-left: 6px;\n cursor: pointer;\n color: #b2b6be;\n"])));
|
|
40322
40344
|
|
|
40323
40345
|
var _templateObject$W;
|