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() {