From aea631138ed213a225c17e9fa57d817a570ff309 Mon Sep 17 00:00:00 2001 From: Cory McWilliams Date: Fri, 27 Dec 2024 13:25:40 -0500 Subject: [PATCH] ssb: Fix private messages starting with unread status when there are none. --- apps/ssb.json | 2 +- apps/ssb/tf-tab-news.js | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/ssb.json b/apps/ssb.json index e86888106..fa3a998b0 100644 --- a/apps/ssb.json +++ b/apps/ssb.json @@ -1,5 +1,5 @@ { "type": "tildefriends-app", "emoji": "🦀", - "previous": "&XjeQP84BXBKSEViNV3c10QisKyGv14Kngfwx3IqorX8=.sha256" + "previous": "&SM9hI4To1+vk52CT8S2VvnhAynikIX27IFxqZIfNGAY=.sha256" } diff --git a/apps/ssb/tf-tab-news.js b/apps/ssb/tf-tab-news.js index 1894f621f..39d12f447 100644 --- a/apps/ssb/tf-tab-news.js +++ b/apps/ssb/tf-tab-news.js @@ -112,6 +112,7 @@ class TfTabNewsElement extends LitElement { unread_status(channel) { if ( this.channels_latest[channel] && + this.channels_latest[channel] > 0 && (this.channels_unread[channel] === undefined || this.channels_unread[channel] <= this.channels_latest[channel]) ) {