1
0
Fork 0
mirror of https://github.com/FrankerFaceZ/FrankerFaceZ.git synced 2025-09-16 10:06:54 +00:00
* Added: Setting to apply username colors to chat mentions. (Closes #753)
* Changed: Stream links now use a darker color.
* Changed: Make the icon for FFZ's Alternative Viewer Count slightly larger.
* Fixed: Crazy flickering when disabling hosting.
* Fixed: Stream links showing up on the home page and not just the live page.
* Fixed: Better detection for channels where the Host button should appear.
* Fixed: FFZ's Alternative Viewer Count metadata not updating correctly when FS Chat is in use.
This commit is contained in:
SirStendec 2020-07-24 17:55:11 -04:00
parent 2f105eb3c4
commit fa3d73e05a
10 changed files with 158 additions and 14 deletions

View file

@ -209,8 +209,15 @@ export const Mentions = {
},
render(token, createElement) {
let color = token.color;
if ( color ) {
const chat = this.resolve('site.chat');
color = chat ? chat.colors.process(color) : color;
}
return (<strong
class={`chat-line__message-mention${token.me ? ' ffz--mention-me' : ''}`}
style={{color}}
data-login={token.recipient}
onClick={this.handleMentionClick}
>
@ -270,11 +277,15 @@ export const Mentions = {
mentioned = mentionable;
}
const rlower = recipient ? recipient.toLowerCase() : '',
color = this.color_cache ? this.color_cache.get(rlower) : null;
out.push({
type: 'mention',
text: `${at}${recipient}`,
me: mentioned,
recipient: recipient ? recipient.toLowerCase() : ''
color,
recipient: rlower
});
if ( mentioned ) {