mirror of
https://github.com/FrankerFaceZ/FrankerFaceZ.git
synced 2025-07-31 06:58:30 +00:00
4.0.0-rc4.6
* Fixed: Add support for Twitch's new emote data structure.
This commit is contained in:
parent
17fb41f083
commit
46da3ee4ee
6 changed files with 59 additions and 13 deletions
|
@ -6,7 +6,7 @@
|
|||
|
||||
import {ColorAdjuster} from 'utilities/color';
|
||||
import {setChildren} from 'utilities/dom';
|
||||
import {has, split_chars, shallow_object_equals} from 'utilities/object';
|
||||
import {has, split_chars, shallow_object_equals, deep_copy} from 'utilities/object';
|
||||
import {FFZEvent} from 'utilities/events';
|
||||
|
||||
import Module from 'utilities/module';
|
||||
|
@ -658,7 +658,7 @@ export default class ChatHook extends Module {
|
|||
this.onChatMessageEvent = function(e) {
|
||||
if ( e && e.sentByCurrentUser ) {
|
||||
try {
|
||||
e.message.user.emotes = findEmotes(
|
||||
e.message.ffz_emotes = findEmotes(
|
||||
e.message.body,
|
||||
i.ffzGetEmotes()
|
||||
);
|
||||
|
@ -676,7 +676,7 @@ export default class ChatHook extends Module {
|
|||
this.onChatActionEvent = function(e) {
|
||||
if ( e && e.sentByCurrentUser ) {
|
||||
try {
|
||||
e.message.user.emotes = findEmotes(
|
||||
e.message.ffz_emotes = findEmotes(
|
||||
e.message.body.slice(8, -1),
|
||||
i.ffzGetEmotes()
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue