Skip to content

Commit

Permalink
Fixing notifications from lists timelines.
Browse files Browse the repository at this point in the history
  • Loading branch information
cezarsa committed Jan 10, 2010
1 parent 4faab66 commit 0b746ec
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions background.html
Expand Up @@ -559,13 +559,17 @@
var unreadNewTweets = [];
var totalUnreadNewIds = [];
this.eachTimeline(function(timeline) {
var timelineId = this;
var unreadNewIds = timeline.getNewUnreadIds();
totalUnreadNewIds = totalUnreadNewIds.concat(unreadNewIds);
if(unreadNewIds.length > 0) {
if(OptionsBackend.get(this + '_icon')) {
colors.push(OptionsBackend.get(this + '_color'));
if(timelineId.match(/^lists/)) {
timelineId = 'lists';
}
if(OptionsBackend.get(this + '_on_page')) {
if(OptionsBackend.get(timelineId + '_icon')) {
colors.push(OptionsBackend.get(timelineId + '_color'));
}
if(OptionsBackend.get(timelineId + '_on_page')) {
unreadNewTweets = unreadNewTweets.concat(timeline.getNewUnreadTweets());
}
}
Expand Down

0 comments on commit 0b746ec

Please sign in to comment.