Merge pull request #2039 from thelounge/xpaw/fix-1721
Fix duplicate chat containers and unread markers when reconnecting
This commit is contained in:
commit
572c93d06b
@ -228,9 +228,10 @@ function renderNetworks(data, singleNetwork) {
|
|||||||
newChannels = channels;
|
newChannels = channels;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (newChannels.length > 0) {
|
||||||
chat.append(
|
chat.append(
|
||||||
templates.chat({
|
templates.chat({
|
||||||
channels: channels,
|
channels: newChannels,
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
|
|
||||||
@ -241,6 +242,7 @@ function renderNetworks(data, singleNetwork) {
|
|||||||
chat.find("#chan-" + channel.id).data("needsNamesRefresh", true);
|
chat.find("#chan-" + channel.id).data("needsNamesRefresh", true);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
}
|
||||||
|
|
||||||
utils.confirmExit();
|
utils.confirmExit();
|
||||||
sorting();
|
sorting();
|
||||||
|
Loading…
Reference in New Issue
Block a user