close #222 : reset mention unread count during switch view via Next View Menu
This commit is contained in:
parent
8178b83efe
commit
72b8a002f9
1 changed files with 4 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Reference in a new issue