feat: add custom patchMsg function + remove patch for btns

This commit is contained in:
Adhiraj Singh
2022-11-12 19:31:11 +05:30
parent 190e6d6bd6
commit b2aa51a13d
4 changed files with 39 additions and 55 deletions

View File

@@ -77,6 +77,14 @@ export type SocketConfig = {
* */
shouldIgnoreJid: (jid: string) => boolean | undefined
/**
* Optionally patch the message before sending out
* */
patchMessageBeforeSending: (
msg: proto.IMessage,
recipientJids: string[],
) => Promise<proto.IMessage> | proto.IMessage
/** verify app state MACs */
appStateMacVerification: {
patch: boolean