close #222 : reset mention unread count during switch view via Next View Menu

This commit is contained in:
dblugeon 2013-05-14 19:25:41 +02:00
parent 8178b83efe
commit 72b8a002f9

View file

@ -194,6 +194,10 @@ function(HostApp, Paths, Cache) {
var img = this.menu[part].getElementsByTagName("img")[0];
if (img.src.endsWith(img.src_active)) {
var next = parts[(i+1)%parts.length];
//we must update unread badges for mentions cf https://github.com/jeena/Bungloo/issues/222
if(next === "mentions"){
bungloo.mentions.setAllMentionsRead();
}
this.showContentFor(bungloo[next], this.menu[next]);
return;
}