Skip to content

Commit

Permalink
Merge pull request #527 from thelounge/PR/fix-unread-clear
Browse files Browse the repository at this point in the history
Reset the unread marker on channel change
  • Loading branch information
astorije committed Jul 26, 2016
2 parents 1796988 + 1f11293 commit 61ea831
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion client/js/lounge.js
Expand Up @@ -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");
Expand Down

0 comments on commit 61ea831

Please sign in to comment.