Merge pull request #720 from stepie22/unread-counters-fix
Fix unread counters resetting when they shouldn't
This commit is contained in:
commit
0bef9e9cde
@ -186,7 +186,7 @@ $(function() {
|
|||||||
|
|
||||||
socket.on("open", function(id) {
|
socket.on("open", function(id) {
|
||||||
// Another client opened the channel, clear the unread counter
|
// Another client opened the channel, clear the unread counter
|
||||||
sidebar.find("[data-id='" + id + "'] .badge")
|
sidebar.find(".chan[data-id='" + id + "'] .badge")
|
||||||
.removeClass("highlight")
|
.removeClass("highlight")
|
||||||
.empty();
|
.empty();
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user