Skip to content

Commit

Permalink
fix: Fixed send message for groups
Browse files Browse the repository at this point in the history
  • Loading branch information
edgardmessias committed Mar 9, 2024
1 parent dca69de commit e0d5932
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/status/functions/sendRawStatus.ts
Expand Up @@ -128,9 +128,11 @@ webpack.onInjected(() => {
});

wrapModuleFunction(encryptAndSendSenderKeyMsg, async (func, ...args) => {
if (args[1].to.user === 'status') {
args[1].to.server = 'broadcast';
}
try {
if (args[1].to.user === 'status') {
args[1].to.server = 'broadcast';
}
} catch (error) {}

return await func(...args);
});
Expand Down

0 comments on commit e0d5932

Please sign in to comment.