From 8b1e24fc44e952c56791ace49460ce824910f829 Mon Sep 17 00:00:00 2001 From: Mikunj Varsani Date: Thu, 6 Feb 2020 14:38:58 +1100 Subject: [PATCH] Clean --- js/background.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/js/background.js b/js/background.js index 2bbc96db6..375338e89 100644 --- a/js/background.js +++ b/js/background.js @@ -241,6 +241,7 @@ const initLokiMessageAPIs = () => { const ourKey = textsecure.storage.user.getNumber(); if (!window.lokiMessageAPI) { + window.feeds = []; window.lokiMessageAPI = new window.LokiMessageAPI(ourKey); } @@ -255,10 +256,7 @@ return; } const ourKey = textsecure.storage.user.getNumber(); - window.feeds = []; - window.lokiMessageAPI = new window.LokiMessageAPI(ourKey); - // singleton to relay events to libtextsecure/message_receiver - window.lokiPublicChatAPI = new window.LokiPublicChatAPI(ourKey); + // singleton to interface the File server // If already exists we registered as a secondary device if (!window.lokiFileServerAPI) {