mirror of
https://github.com/FrankerFaceZ/FrankerFaceZ.git
synced 2025-09-16 18:06:55 +00:00
4.0.0-rc11
* Added "Chat > Behavior > Deleted Message Style" setting to customize how deleted messages appear when set to always be visible. * Added "Chat > Filtering > Filter your own messages." setting to control whether or not your own chat messages are filtered. Defaults to disabled. * Fixed: Channel Hosting, via better detection of new vs old channel component style.
This commit is contained in:
parent
25069e1298
commit
089bc6d715
9 changed files with 54 additions and 18 deletions
|
@ -274,10 +274,13 @@ export const CustomHighlights = {
|
|||
return (<strong class="ffz--highlight">{token.text}</strong>);
|
||||
},
|
||||
|
||||
process(tokens, msg) {
|
||||
process(tokens, msg, user) {
|
||||
if ( ! tokens || ! tokens.length )
|
||||
return tokens;
|
||||
|
||||
if ( user && user.login && user.login == msg.user.login && ! this.context.get('chat.filtering.process-own') )
|
||||
return tokens;
|
||||
|
||||
const colors = this.context.get('chat.filtering.highlight-basic-terms--color-regex');
|
||||
if ( ! colors || ! colors.size )
|
||||
return tokens;
|
||||
|
@ -390,10 +393,13 @@ export const BlockedTerms = {
|
|||
]
|
||||
},
|
||||
|
||||
process(tokens, msg) {
|
||||
process(tokens, msg, user) {
|
||||
if ( ! tokens || ! tokens.length )
|
||||
return tokens;
|
||||
|
||||
if ( user && user.login && user.login == msg.user.login && ! this.context.get('chat.filtering.process-own') )
|
||||
return tokens;
|
||||
|
||||
const regexes = this.context.get('chat.filtering.highlight-basic-blocked--regex');
|
||||
if ( ! regexes )
|
||||
return tokens;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue