From b3e2a5aba8b2af039f227d216d922dd3c891f5e0 Mon Sep 17 00:00:00 2001 From: Ryan Tharp Date: Mon, 2 Sep 2019 20:35:02 -0700 Subject: [PATCH] move refreshModStatus into constructor of channelAPI, just instantiate channelAPI now --- js/background.js | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/js/background.js b/js/background.js index aee0cbbd3..88ce7275b 100644 --- a/js/background.js +++ b/js/background.js @@ -219,13 +219,8 @@ } ); publicConversations.forEach(conversation => { - const settings = conversation.getPublicSource(); - const channel = window.lokiPublicChatAPI.findOrCreateChannel( - settings.server, - settings.channelId, - conversation.id - ); - channel.refreshModStatus(); + // weird but create the object and does everything we need + conversation.getPublicSendData(); }); };