Merge pull request #527 from thelounge/PR/fix-unread-clear
Reset the unread marker on channel change
This commit is contained in:
commit
61ea8313fd
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user