1
0
Fork 0
mirror of https://github.com/FrankerFaceZ/FrankerFaceZ.git synced 2025-06-27 21:05:53 +00:00
* Fixed: Clicking an emote in chat not opening an emote information card.
* API Added: Link information can now have a `refresh` value, which will have the client automatically refresh link data after at a certain time.
This commit is contained in:
SirStendec 2020-08-07 01:32:18 -04:00
parent e87c99f206
commit 6c0c421d0a
7 changed files with 80 additions and 26 deletions

View file

@ -400,14 +400,15 @@ export default class Emotes extends Module {
if ( ! fine )
return;
const chat = fine.searchParent(target, n => n.props && n.props.onEmoteClick);
if ( ! chat || ! chat.props || ! chat.props.message )
const line = fine.searchParent(target, n => n.props && n.props.message),
opener = fine.searchParent(target, n => n.onShowEmoteCard, 200);
if ( ! line || ! opener )
return;
const props = chat.props;
props.onEmoteClick({
channelID: props.channelID || '',
channelLogin: props.channelLogin || '',
opener.onShowEmoteCard({
channelID: line.props.channelID || '',
channelLogin: line.props.channelLogin || '',
emoteID: ds.id,
emoteCode: target.alt,
sourceID: 'chat',