ssb: The unread line can be used to make everything above read.

This commit is contained in:
2025-07-02 18:19:34 -04:00
parent ef21dc6ae8
commit ef389f2ba2
3 changed files with 15 additions and 2 deletions

View File

@ -1,5 +1,5 @@
{ {
"type": "tildefriends-app", "type": "tildefriends-app",
"emoji": "🦀", "emoji": "🦀",
"previous": "&fAgPjWyRwHxcKiSV3T8OE7UyAUUgHE02YnA7e+sm3lo=.sha256" "previous": "&6ML6KvKpwkVZEn7KtV0p9PylEkS8r28eGbbgmfwmVqM=.sha256"
} }

View File

@ -233,7 +233,19 @@ class TfNewsElement extends LitElement {
<div <div
style="border-bottom: 1px solid #f00; flex: 1; align-self: center; height: 1px" style="border-bottom: 1px solid #f00; flex: 1; align-self: center; height: 1px"
></div> ></div>
<div style="color: #f00; padding: 8px">unread</div> <button
style="color: #f00; padding: 8px"
class="w3-button"
@click=${() =>
this.dispatchEvent(
new Event('mark_all_read', {
bubbles: true,
composed: true,
})
)}
>
unread
</button>
<div <div
style="border-bottom: 1px solid #f00; flex: 1; align-self: center; height: 1px" style="border-bottom: 1px solid #f00; flex: 1; align-self: center; height: 1px"
></div> ></div>

View File

@ -486,6 +486,7 @@ class TfTabNewsFeedElement extends LitElement {
channel=${this.channel()} channel=${this.channel()}
channel_unread=${this.channels_unread?.[this.channel()]} channel_unread=${this.channels_unread?.[this.channel()]}
.recent_reactions=${this.recent_reactions} .recent_reactions=${this.recent_reactions}
@mark_all_read=${this.mark_all_read}
></tf-news> ></tf-news>
${more} ${more}
`); `);