Array.isArray to isArray

Array.isNotEmpty to isNonEmptyArray
This commit is contained in:
djmaze 2021-03-16 16:49:14 +01:00
parent 986b8f056b
commit 0b64083543
30 changed files with 82 additions and 69 deletions

View file

@ -1,4 +1,4 @@
import { pString, pInt } from 'Common/Utils';
import { isArray, isNonEmptyArray, pString, pInt } from 'Common/Utils';
import {
getFolderHash,
@ -440,7 +440,7 @@ class RemoteUserFetch extends AbstractFetchRemote {
let request = true;
const uids = [];
if (Array.isNotEmpty(list)) {
if (isNonEmptyArray(list)) {
request = false;
list.forEach(messageListItem => {
if (!MessageFlagsCache.getFor(messageListItem.folder, messageListItem.uid)) {
@ -464,7 +464,7 @@ class RemoteUserFetch extends AbstractFetchRemote {
if (request) {
this.defaultRequest(fCallback, 'FolderInformation', {
Folder: folder,
FlagsUids: Array.isArray(uids) ? uids.join(',') : '',
FlagsUids: isArray(uids) ? uids.join(',') : '',
UidNext: getFolderInboxName() === folder ? getFolderUidNext(folder) : ''
});
} else if (SettingsUserStore.useThreads()) {