Fix duplicate chat containers and unread markers when reconnecting

Fixes #1721
This commit is contained in:
Pavel Djundik 2018-02-06 10:57:16 +02:00
parent 79a2c72c06
commit a9198b1cf6

View File

@ -228,9 +228,10 @@ function renderNetworks(data, singleNetwork) {
newChannels = channels;
}
if (newChannels.length > 0) {
chat.append(
templates.chat({
channels: channels,
channels: newChannels,
})
);
@ -241,6 +242,7 @@ function renderNetworks(data, singleNetwork) {
chat.find("#chan-" + channel.id).data("needsNamesRefresh", true);
}
});
}
utils.confirmExit();
sorting();