Permalink
Browse files

Merge pull request #203 from eirikb/unread-suggestion

Don't show unread-label on open (active) channel/chat
  • Loading branch information...
thedjpetersen committed Feb 4, 2013
2 parents 67c1d75 + 29c846d commit 9d5aaba1d4f4a75f668d40df8103d6aaccb6e847
Showing with 2 additions and 0 deletions.
  1. +2 −0 assets/js/views/channel_tab.js
@@ -34,6 +34,8 @@ var ChannelTabView = Backbone.View.extend({
var unread = this.model.get('unread');
var unreadMentions = this.model.get('unreadMentions');
+ if ($(this.el).hasClass('active')) return;
+
// TODO: do something more sensible here than remove/readd elements
// this.$el.children('.unread, .unread_mentions').remove();

0 comments on commit 9d5aaba

Please sign in to comment.