Merge pull request #2109 from thelounge/xpaw/fix-stuck-rendering

Fix "rendering..." getting stuck on first connection
This commit is contained in:
Jérémie Astori 2018-02-23 20:27:56 -05:00 committed by GitHub
commit 2dbb150463
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -30,11 +30,11 @@ socket.on("init", function(data) {
render.renderNetworks(data); render.renderNetworks(data);
} }
if (lastMessageId > -1) { $("#connection-error").removeClass("shown");
$("#connection-error").removeClass("shown"); $(".show-more-button, #input").prop("disabled", false);
$(".show-more-button, #input").prop("disabled", false); $("#submit").show();
$("#submit").show();
} else { if (lastMessageId < 0) {
if (data.token) { if (data.token) {
storage.set("token", data.token); storage.set("token", data.token);
} }