diff --git a/client/js/lounge.js b/client/js/lounge.js index 2e014815..3c767ad4 100644 --- a/client/js/lounge.js +++ b/client/js/lounge.js @@ -788,11 +788,6 @@ $(function() { .addClass("active") .trigger("show"); - var chanChat = chan.find(".chat"); - if (chanChat.length > 0) { - chanChat.sticky(); - } - var title = "The Lounge"; if (chan.data("title")) { title = chan.data("title") + " — " + title; @@ -804,6 +799,11 @@ $(function() { setNick(self.closest(".network").data("nick")); } + var chanChat = chan.find(".chat"); + if (chanChat.length > 0) { + chanChat.sticky(); + } + if (chan.data("needsNamesRefresh") === true) { chan.data("needsNamesRefresh", false); socket.emit("names", {target: self.data("id")});