1
0
Fork 0
mirror of https://github.com/FrankerFaceZ/FrankerFaceZ.git synced 2025-06-27 21:05:53 +00:00

Merge branch 'master' of github.com:FrankerFaceZ/FrankerFaceZ

This commit is contained in:
SirStendec 2022-12-07 16:52:38 -05:00
commit 92ff27f3fb

View file

@ -942,18 +942,18 @@ export default class Input extends Module {
getEmoteSuggestions(input, inst) {
if ( ! inst._ffz_channel_login ) {
const parent = this.fine.searchParent(inst, 'chat-input', 50);
if ( parent )
this.updateEmoteCompletion(parent, inst);
}
const user = inst._ffz_user,
channel_id = inst._ffz_channel_id,
channel_login = inst._ffz_channel_login;
if ( ! channel_login ) {
const parent = this.fine.searchParent(inst, 'chat-input', 50);
if ( parent )
this.updateEmoteCompletion(parent, inst);
if ( ! channel_login )
return [];
}
if ( ! channel_login )
return [];
let cache = inst.ffz_ffz_cache;
if ( ! cache || cache.user_id !== user?.id || cache.user_login !== user?.login || cache.channel_id !== channel_id || cache.channel_login !== channel_login )