ssb: Fix private messages starting with unread status when there are none.

This commit is contained in:
Cory McWilliams 2024-12-27 13:25:40 -05:00
parent 683fdbb02a
commit aea631138e
2 changed files with 2 additions and 1 deletions

View File

@ -1,5 +1,5 @@
{ {
"type": "tildefriends-app", "type": "tildefriends-app",
"emoji": "🦀", "emoji": "🦀",
"previous": "&XjeQP84BXBKSEViNV3c10QisKyGv14Kngfwx3IqorX8=.sha256" "previous": "&SM9hI4To1+vk52CT8S2VvnhAynikIX27IFxqZIfNGAY=.sha256"
} }

View File

@ -112,6 +112,7 @@ class TfTabNewsElement extends LitElement {
unread_status(channel) { unread_status(channel) {
if ( if (
this.channels_latest[channel] && this.channels_latest[channel] &&
this.channels_latest[channel] > 0 &&
(this.channels_unread[channel] === undefined || (this.channels_unread[channel] === undefined ||
this.channels_unread[channel] <= this.channels_latest[channel]) this.channels_unread[channel] <= this.channels_latest[channel])
) { ) {