mirror of
https://github.com/thelounge/thelounge
synced 2024-11-26 22:10:22 +00:00
Fix duplicate chat containers and unread markers when reconnecting
Fixes #1721
This commit is contained in:
parent
79a2c72c06
commit
a9198b1cf6
1 changed files with 13 additions and 11 deletions
|
@ -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 a new issue