From 60cefc7fe197ad3b1d2295ff806ef944c237211f Mon Sep 17 00:00:00 2001 From: Ryan Tharp Date: Wed, 13 Nov 2019 16:33:09 -0800 Subject: [PATCH] improve comments --- js/modules/loki_app_dot_net_api.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/js/modules/loki_app_dot_net_api.js b/js/modules/loki_app_dot_net_api.js index a71b3558c..bb57284a0 100644 --- a/js/modules/loki_app_dot_net_api.js +++ b/js/modules/loki_app_dot_net_api.js @@ -946,6 +946,7 @@ class LokiPublicChannelAPI { if (pendingMessages.length) { // console.log('premultiDeviceResults', pubKeys); if (pubKeys.length) { + // this will set slavePrimaryMap const verifiedPrimaryPKs = await lokiFileServerAPI.verifyPrimaryPubKeys( pubKeys ); @@ -976,7 +977,8 @@ class LokiPublicChannelAPI { }); pendingMessages = []; // free memory - // if we have verified primaryKeys then update them + // build map of userProfileName to primaryKeys + // if we have verified primaryKeys/the claimed relation if (verifiedPrimaryPKs.length) { // get final list of verified chat server profile names const verifiedDeviceResults = await this.serverAPI.getUsers( @@ -1011,7 +1013,6 @@ class LokiPublicChannelAPI { primaryPubKey ]; } - // console.log('messageData', messageData) this.serverAPI.chatAPI.emit('publicMessage', { message: messageData, });