From acd114650aa2872bcadd5dc8c4a38d60384e1c77 Mon Sep 17 00:00:00 2001 From: Cory McWilliams Date: Thu, 16 Oct 2025 12:47:20 -0400 Subject: [PATCH] ssb: Slightly improved following/blocking messages. following=true blocking=false is a common situation that should be described as following. --- apps/ssb.json | 2 +- apps/ssb/tf-message.js | 20 +++++++++++--------- 2 files changed, 12 insertions(+), 10 deletions(-) diff --git a/apps/ssb.json b/apps/ssb.json index 4c7b0b66..2b2d0a42 100644 --- a/apps/ssb.json +++ b/apps/ssb.json @@ -1,5 +1,5 @@ { "type": "tildefriends-app", "emoji": "🦀", - "previous": "&Cz8miv45HPxRJGyj1dj2Z2us1rL6HTNxZyeR1pmYaWw=.sha256" + "previous": "&MmdDLLTFsefkzBvp4GGrghv95GPgd/00QKPBLEnpUgg=.sha256" } diff --git a/apps/ssb/tf-message.js b/apps/ssb/tf-message.js index 6bb161d2..cd6ef6e6 100644 --- a/apps/ssb/tf-message.js +++ b/apps/ssb/tf-message.js @@ -622,15 +622,17 @@ class TfMessageElement extends LitElement { let sorted = this.message.messages .map((x) => [ x.author, - x.content.blocking !== undefined - ? x.content.blocking - ? 'is blocking' - : 'is no longer blocking' - : x.content.following !== undefined - ? x.content.following - ? 'is following' - : 'is no longer following' - : '', + x.content.following && x.content.blocking + ? 'is following and blocking' + : x.content.following + ? 'is following' + : x.content.blocking + ? 'is blocking' + : x.content.blocking !== undefined + ? 'is no longer blocking' + : x.content.following !== undefined + ? 'is no longer following' + : '', x.content.contact, x, ])