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")
|
.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");
|
||||||
|
Loading…
Reference in New Issue
Block a user