diff --git a/client/js/lounge.js b/client/js/lounge.js index 133dd4d4..1b8a838c 100644 --- a/client/js/lounge.js +++ b/client/js/lounge.js @@ -764,10 +764,14 @@ $(function() { .find(".chat") .unsticky(); - lastActive + var lastActiveChan = lastActive .find(".chan.active") .removeClass("active"); + lastActiveChan + .find(".unread-marker") + .appendTo(lastActiveChan.find(".messages")); + var chan = $(target) .addClass("active") .trigger("show");