lint plus constant fix

pull/475/head
Ryan Tharp 6 years ago
parent 2ca23db141
commit f093490bec

@ -369,9 +369,12 @@ class LokiPublicChannelAPI {
include_annotations: 1, include_annotations: 1,
}, },
}); });
if (!res.err && res.response && res.response.data.annotations && if (
res.response.data.annotations.length !res.err &&
) { res.response &&
res.response.data.annotations &&
res.response.data.annotations.length
) {
res.response.data.annotations.forEach(note => { res.response.data.annotations.forEach(note => {
if (note.type === 'net.patter-app.settings') { if (note.type === 'net.patter-app.settings') {
// note.value.description only needed for directory // note.value.description only needed for directory
@ -402,7 +405,7 @@ class LokiPublicChannelAPI {
} }
setTimeout(() => { setTimeout(() => {
this.pollForDeletions(); this.pollForDeletions();
}, DELETION_POLL_EVERY); }, PUBLICCHAT_DELETION_POLL_EVERY);
} }
async pollOnceForDeletions() { async pollOnceForDeletions() {
@ -454,7 +457,7 @@ class LokiPublicChannelAPI {
} }
setTimeout(() => { setTimeout(() => {
this.pollForMessages(); this.pollForMessages();
}, GROUPCHAT_POLL_EVERY); }, PUBLICCHAT_MSG_POLL_EVERY);
} }
async pollOnceForMessages() { async pollOnceForMessages() {

Loading…
Cancel
Save