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:
commit
92ff27f3fb
1 changed files with 8 additions and 8 deletions
|
@ -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 )
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue