Merge pull request #2039 from thelounge/xpaw/fix-1721

Fix duplicate chat containers and unread markers when reconnecting
This commit is contained in:
Jérémie Astori 2018-02-06 19:10:00 -05:00 committed by GitHub
commit 572c93d06b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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();