-
-
Notifications
You must be signed in to change notification settings - Fork 115
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: Fixed send status error #1540
fix: Fixed send status error #1540
Conversation
src/whatsapp/functions/GROUP_JID.ts
Outdated
/** | ||
* @whatsapp 355813 | ||
*/ | ||
export declare function GROUP_JID(jid: Wid): Promise<any>; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@icleitoncosta , poderia verificar se essa função é realmente assíncrona, pelo que lembro é uma função normal, talvez tenha que tirar os await/async nos usos.
@icleitoncosta , só falta ajustar o tipo de função que não é assíncrona para fazer merge desse PR |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Só falta remover os async/await nos pontos que marquei.
@@ -132,4 +134,11 @@ webpack.onInjected(() => { | |||
|
|||
return await func(...args); | |||
}); | |||
|
|||
wrapModuleFunction(GROUP_JID, async (func, ...args) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
wrapModuleFunction(GROUP_JID, async (func, ...args) => { | |
wrapModuleFunction(GROUP_JID, (func, ...args) => { |
|
||
wrapModuleFunction(GROUP_JID, async (func, ...args) => { | ||
if (args[0].toString().includes('broadcast')) { | ||
return await CHAT_JID(...args); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
return await CHAT_JID(...args); | |
return CHAT_JID(...args); |
if (args[0].toString().includes('broadcast')) { | ||
return await CHAT_JID(...args); | ||
} | ||
return await func(...args); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
return await func(...args); | |
return func(...args); |
Apresentava o seguinte erro ao tentar postar status, fazendo o wrapper dessa função resolveu o mesmo.