diff --git a/js/models/conversations.js b/js/models/conversations.js index fe291c98c..3191f3319 100644 --- a/js/models/conversations.js +++ b/js/models/conversations.js @@ -7,6 +7,7 @@ /* global storage: false */ /* global textsecure: false */ /* global Whisper: false */ +/* global lokiP2pAPI: false */ /* eslint-disable more/no-then */ diff --git a/js/modules/loki_p2p_api.js b/js/modules/loki_p2p_api.js index ca8a13597..5cbbbdacd 100644 --- a/js/modules/loki_p2p_api.js +++ b/js/modules/loki_p2p_api.js @@ -16,7 +16,10 @@ class LokiP2pAPI extends EventEmitter { ? 60 * 1000 // 1 minute : 2 * 60 * 1000; // 2 minutes - if (this.contactP2pDetails[pubKey] && this.contactP2pDetails[pubKey].pingTimer) { + if ( + this.contactP2pDetails[pubKey] && + this.contactP2pDetails[pubKey].pingTimer + ) { clearTimeout(this.contactP2pDetails[pubKey].pingTimer); } this.contactP2pDetails[pubKey] = { @@ -67,7 +70,9 @@ class LokiP2pAPI extends EventEmitter { } isOnline(pubKey) { - return !!(this.contactP2pDetails[pubKey] && this.contactP2pDetails[pubKey].isOnline); + return !!( + this.contactP2pDetails[pubKey] && this.contactP2pDetails[pubKey].isOnline + ); } pingContact(pubKey) {