move refreshModStatus into constructor of channelAPI, just instantiate channelAPI now

pull/475/head
Ryan Tharp 6 years ago
parent 14f5fc53be
commit b3e2a5aba8

@ -219,13 +219,8 @@
} }
); );
publicConversations.forEach(conversation => { publicConversations.forEach(conversation => {
const settings = conversation.getPublicSource(); // weird but create the object and does everything we need
const channel = window.lokiPublicChatAPI.findOrCreateChannel( conversation.getPublicSendData();
settings.server,
settings.channelId,
conversation.id
);
channel.refreshModStatus();
}); });
}; };

Loading…
Cancel
Save