This commit is contained in:
Cory McWilliams 2025-06-04 20:48:04 -04:00
parent 462b40640c
commit 6bef0eb764

View File

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