Merge pull request #527 from thelounge/PR/fix-unread-clear

Reset the unread marker on channel change
This commit is contained in:
Jérémie Astori 2016-07-26 10:28:54 -04:00 committed by GitHub
commit 61ea8313fd

View File

@ -764,10 +764,14 @@ $(function() {
.find(".chat") .find(".chat")
.unsticky(); .unsticky();
lastActive var lastActiveChan = lastActive
.find(".chan.active") .find(".chan.active")
.removeClass("active"); .removeClass("active");
lastActiveChan
.find(".unread-marker")
.appendTo(lastActiveChan.find(".messages"));
var chan = $(target) var chan = $(target)
.addClass("active") .addClass("active")
.trigger("show"); .trigger("show");