forked from cory/tildefriends
prettier
This commit is contained in:
parent
462b40640c
commit
6bef0eb764
@ -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() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user