From f093490becb66b40af15c1c1c2869e1ff337ffdc Mon Sep 17 00:00:00 2001 From: Ryan Tharp Date: Tue, 3 Sep 2019 22:01:20 -0700 Subject: [PATCH] lint plus constant fix --- js/modules/loki_public_chat_api.js | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/js/modules/loki_public_chat_api.js b/js/modules/loki_public_chat_api.js index 804ea74b4..753f5cf6c 100644 --- a/js/modules/loki_public_chat_api.js +++ b/js/modules/loki_public_chat_api.js @@ -369,9 +369,12 @@ class LokiPublicChannelAPI { include_annotations: 1, }, }); - if (!res.err && res.response && res.response.data.annotations && - res.response.data.annotations.length - ) { + if ( + !res.err && + res.response && + res.response.data.annotations && + res.response.data.annotations.length + ) { res.response.data.annotations.forEach(note => { if (note.type === 'net.patter-app.settings') { // note.value.description only needed for directory @@ -402,7 +405,7 @@ class LokiPublicChannelAPI { } setTimeout(() => { this.pollForDeletions(); - }, DELETION_POLL_EVERY); + }, PUBLICCHAT_DELETION_POLL_EVERY); } async pollOnceForDeletions() { @@ -454,7 +457,7 @@ class LokiPublicChannelAPI { } setTimeout(() => { this.pollForMessages(); - }, GROUPCHAT_POLL_EVERY); + }, PUBLICCHAT_MSG_POLL_EVERY); } async pollOnceForMessages() {