From 3038a8c7d203dac834907c9cda0d23af5e4ef4c5 Mon Sep 17 00:00:00 2001 From: Ryan Tharp Date: Tue, 3 Mar 2020 18:48:25 -0800 Subject: [PATCH] use lodash to reduce confusion --- js/modules/loki_app_dot_net_api.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/modules/loki_app_dot_net_api.js b/js/modules/loki_app_dot_net_api.js index 5791b7347..c6f77a010 100644 --- a/js/modules/loki_app_dot_net_api.js +++ b/js/modules/loki_app_dot_net_api.js @@ -1737,8 +1737,8 @@ class LokiPublicChannelAPI { message => !(message.source in slavePrimaryMap) ); // get minimum ID for primaryMessages and slaveMessages - const firstPrimaryId = Math.min(...primaryMessages.map(msg => msg.serverId)); - const firstSlaveId = Math.min(...slaveMessages.map(msg => msg.serverId)); + const firstPrimaryId = _.min(primaryMessages.map(msg => msg.serverId)); + const firstSlaveId = _.min(slaveMessages.map(msg => msg.serverId)); if (firstPrimaryId < firstSlaveId) { // early send // split off count from pendingMessages