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 => {
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();
});
};

Loading…
Cancel
Save