From 91a814b20a8089c8ddea639e41c956f6d380bf2b Mon Sep 17 00:00:00 2001 From: Ryan Tharp Date: Tue, 3 Dec 2019 15:21:41 -0800 Subject: [PATCH] remove avatar annotation if not needed, lint --- 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 82a685c99..2328c7cb9 100644 --- a/js/modules/loki_app_dot_net_api.js +++ b/js/modules/loki_app_dot_net_api.js @@ -145,7 +145,7 @@ class LokiAppDotNetServerAPI { } async setAvatar(url, profileKey) { - let value = null; + let value; // undefined will save bandwidth on the annotation if we don't need it (no avatar) if (url && profileKey) { value = { url, profileKey }; } @@ -666,7 +666,7 @@ class LokiPublicChannelAPI { `loki/v1/channels/${this.channelId}/moderators` ); // FIXME: should this be window.storage.get('primaryDevicePubKey')? - const ourNumber = textsecure.storage.user.getNumber();; + const ourNumber = textsecure.storage.user.getNumber(); // Get the list of moderators if no errors occurred const moderators = !res.err && res.response && res.response.moderators;