ssb: Filter out invalid RPC flags.
All checks were successful
Build Tilde Friends / Build-All (push) Successful in 32m12s

This commit is contained in:
2025-06-12 12:50:38 -04:00
parent 388b829ec1
commit cadc27b7b5
3 changed files with 9 additions and 5 deletions

View File

@ -632,8 +632,10 @@ class TfMessageElement extends LitElement {
}
allow_unread() {
return this.channel == '@' ||
(!this.channel.startsWith('@') && !this.channel.startsWith('%'));
return (
this.channel == '@' ||
(!this.channel.startsWith('@') && !this.channel.startsWith('%'))
);
}
render_unread_icon() {

View File

@ -276,8 +276,10 @@ class TfTabNewsFeedElement extends LitElement {
}
unread_allowed() {
return this.hash == '#@' ||
(!this.hash.startsWith('#%') && !this.hash.startsWith('#@'));
return (
this.hash == '#@' ||
(!this.hash.startsWith('#%') && !this.hash.startsWith('#@'))
);
}
async load_more() {