diff --git a/apps/ssb.json b/apps/ssb.json index 518c0d6a..e50fd528 100644 --- a/apps/ssb.json +++ b/apps/ssb.json @@ -1,5 +1,5 @@ { "type": "tildefriends-app", "emoji": "🦀", - "previous": "&RkHUl/WRe0UpvTB2W6cw0f4AeupL/2PEI1pXg5PDXBg=.sha256" + "previous": "&gO8ganUDJtyGtfKUPRTbK2d34GJXhHKvHIZheF/lXI4=.sha256" } diff --git a/apps/ssb/tf-tab-news.js b/apps/ssb/tf-tab-news.js index e64f6c9f..8a3e1b6f 100644 --- a/apps/ssb/tf-tab-news.js +++ b/apps/ssb/tf-tab-news.js @@ -97,7 +97,11 @@ class TfTabNewsElement extends LitElement { } unread_status(channel) { - if ( + if (channel === undefined) { + if (Object.keys(this.channels_unread).some(x => this.unread_status(x))) { + return '✉️ '; + } + } else if ( this.channels_latest[channel] && this.channels_latest[channel] > 0 && (this.channels_unread[channel] === undefined || @@ -315,7 +319,7 @@ class TfTabNewsElement extends LitElement { class="w3-button w3-hide-large" @click=${this.show_sidebar} > - ☰ + ${this.unread_status()}☰ Welcome, ! ${edit_profile}