Merge pull request #2109 from thelounge/xpaw/fix-stuck-rendering
Fix "rendering..." getting stuck on first connection
This commit is contained in:
commit
2dbb150463
@ -30,11 +30,11 @@ socket.on("init", function(data) {
|
||||
render.renderNetworks(data);
|
||||
}
|
||||
|
||||
if (lastMessageId > -1) {
|
||||
$("#connection-error").removeClass("shown");
|
||||
$(".show-more-button, #input").prop("disabled", false);
|
||||
$("#submit").show();
|
||||
} else {
|
||||
|
||||
if (lastMessageId < 0) {
|
||||
if (data.token) {
|
||||
storage.set("token", data.token);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user