This commit is contained in:
parent
462b40640c
commit
6bef0eb764
@ -414,7 +414,7 @@ class TfMessageElement extends LitElement {
|
|||||||
class_background() {
|
class_background() {
|
||||||
return this.message?.decrypted
|
return this.message?.decrypted
|
||||||
? 'w3-pale-red'
|
? '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-d2'
|
||||||
: 'w3-theme-d4';
|
: 'w3-theme-d4';
|
||||||
}
|
}
|
||||||
@ -632,14 +632,14 @@ class TfMessageElement extends LitElement {
|
|||||||
}
|
}
|
||||||
|
|
||||||
allow_unread() {
|
allow_unread() {
|
||||||
return
|
return;
|
||||||
!this.channel.startsWith('@') &&
|
!this.channel.startsWith('@') && !this.channel.startsWith('%');
|
||||||
!this.channel.startsWith('%');
|
|
||||||
}
|
}
|
||||||
|
|
||||||
render_unread_icon() {
|
render_unread_icon() {
|
||||||
return this.allow_unread() &&
|
return this.allow_unread() && this.message?.rowid >= this.channel_unread
|
||||||
this.message?.rowid >= this.channel_unread ? html`✉️` : undefined;
|
? html`✉️`
|
||||||
|
: undefined;
|
||||||
}
|
}
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user