mirror of
https://github.com/thelounge/thelounge
synced 2024-11-10 22:54:15 +00:00
Reset the unread marker on channel change
This restores the old behavior of resetting the unread marker on channel change, as that's usually at this point one wants to check for new messages and is also what matches on the server. I feel this is overall more consistent and useful, and also more in line with what other clients do.
This commit is contained in:
parent
179698887d
commit
1f11293ac9
1 changed files with 5 additions and 1 deletions
|
@ -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 a new issue