From a1f1eb34d558bf1974ce967e7c27fc8ea2c9cab3 Mon Sep 17 00:00:00 2001 From: Cory McWilliams Date: Wed, 11 Jun 2025 20:12:23 -0400 Subject: [PATCH] ssb: sequence: Sequential 32-bit integer starting at 1. --- apps/ssb/tf-news.js | 2 +- apps/ssb/tf-tab-news-feed.js | 15 ++++++---- src/main.c | 12 ++++---- src/ssb.c | 8 +++--- src/ssb.db.c | 53 ++++++++++++++++++------------------ src/ssb.db.h | 8 +++--- src/ssb.ebt.c | 16 +++++------ src/ssb.ebt.h | 6 ++-- src/ssb.h | 6 ++-- src/ssb.js.c | 4 +-- src/ssb.rpc.c | 24 ++++++++-------- src/ssb.tests.c | 14 +++++----- src/task.c | 5 ++-- 13 files changed, 89 insertions(+), 84 deletions(-) diff --git a/apps/ssb/tf-news.js b/apps/ssb/tf-news.js index a41aa3fcf..d7611e8cb 100644 --- a/apps/ssb/tf-news.js +++ b/apps/ssb/tf-news.js @@ -204,7 +204,7 @@ class TfNewsElement extends LitElement { this.finalize_messages(messages_by_id) ); let unread_rowid = -1; - if (this.unread_allowed()) { + if (this.unread_allowed()) { for (let message of final_messages) { if (message.rowid >= this.channel_unread) { unread_rowid = message.rowid; diff --git a/apps/ssb/tf-tab-news-feed.js b/apps/ssb/tf-tab-news-feed.js index 7ad1a62ab..64652b4d6 100644 --- a/apps/ssb/tf-tab-news-feed.js +++ b/apps/ssb/tf-tab-news-feed.js @@ -428,11 +428,16 @@ class TfTabNewsFeedElement extends LitElement { if (!this.hash.startsWith('#%')) { more = html`

- ${this.unread_allowed() ? html` - - ` : undefined} + ${this.unread_allowed() + ? html` + + ` + : undefined}