From 6bef0eb764421834d17e42d05e24062e2676f27a Mon Sep 17 00:00:00 2001 From: Cory McWilliams Date: Wed, 4 Jun 2025 20:48:04 -0400 Subject: [PATCH] prettier --- apps/ssb/tf-message.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/apps/ssb/tf-message.js b/apps/ssb/tf-message.js index 6911d565..46af33ba 100644 --- a/apps/ssb/tf-message.js +++ b/apps/ssb/tf-message.js @@ -414,7 +414,7 @@ class TfMessageElement extends LitElement { class_background() { return this.message?.decrypted ? 'w3-pale-red' - : (this.allow_unread() && this.message?.rowid >= this.channel_unread) + : this.allow_unread() && this.message?.rowid >= this.channel_unread ? 'w3-theme-d2' : 'w3-theme-d4'; } @@ -632,14 +632,14 @@ class TfMessageElement extends LitElement { } allow_unread() { - return - !this.channel.startsWith('@') && - !this.channel.startsWith('%'); + return; + !this.channel.startsWith('@') && !this.channel.startsWith('%'); } render_unread_icon() { - return this.allow_unread() && - this.message?.rowid >= this.channel_unread ? html`✉️` : undefined; + return this.allow_unread() && this.message?.rowid >= this.channel_unread + ? html`✉️` + : undefined; } render() {