Merge pull request #484 from williamboman/fix/chat-sticky

client: fix chat not being stickied to the bottom when joining channel
This commit is contained in:
Maxime Poulin 2016-07-11 01:50:20 +00:00 committed by GitHub
commit cc881da2fc

View file

@ -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")});