From a668be33d7a2c9d5b1158030f6035f3631c55cac Mon Sep 17 00:00:00 2001 From: Vincent Date: Thu, 14 May 2020 15:58:44 +1000 Subject: [PATCH] remove lodash --- ts/state/selectors/conversations.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ts/state/selectors/conversations.ts b/ts/state/selectors/conversations.ts index 5b85ed009..4cc66343d 100644 --- a/ts/state/selectors/conversations.ts +++ b/ts/state/selectors/conversations.ts @@ -102,7 +102,6 @@ export const _getLeftPaneLists = ( sentFriendsRequest: Array; unreadCount: number; } => { - const _ = window.Lodash; const values = Object.values(lookup); const sorted = values.sort(comparator); @@ -168,7 +167,7 @@ export const _getLeftPaneLists = ( const devicePrimary = group.find(c => c.id === device.primaryDevice); // Remove secondary where primary already exists in group - if (_.includes(group, devicePrimary)) { + if (group.some(c => c === devicePrimary)) { secondariesToRemove.push(device.id); } });