1
0
Fork 0
mirror of https://github.com/FrankerFaceZ/FrankerFaceZ.git synced 2025-07-31 06:58:30 +00:00

Apparently, there can be ID mismatches with chat and users. It's crazy stuff. Just log a warning when it happens and try to correct. Also, change tokenizer priority for mentions vs emotes.

This commit is contained in:
SirStendec 2018-04-07 17:59:16 -04:00
parent df874da420
commit 2eb92a7075
2 changed files with 24 additions and 8 deletions

View file

@ -206,7 +206,7 @@ Links.tooltip.delayHide = function(target) {
export const Mentions = {
type: 'mention',
priority: 40,
priority: 0,
render(token, createElement) {
return (<strong class={`chat-line__message-mention${token.me ? ' ffz--mention-me' : ''}`}>
@ -277,6 +277,7 @@ export const Mentions = {
export const CheerEmotes = {
type: 'cheer',
priority: 40,
render(token, createElement) {
return (<span
@ -446,6 +447,7 @@ export const CheerEmotes = {
export const AddonEmotes = {
type: 'emote',
priority: 10,
render(token, createElement) {
const mods = token.modifiers || [], ml = mods.length,
@ -643,7 +645,7 @@ export const AddonEmotes = {
export const TwitchEmotes = {
type: 'twitch-emote',
priority: 10,
priority: 20,
process(tokens, msg) {
if ( ! msg.emotes )