updated WAMessage definitions

This commit is contained in:
Adhiraj
2020-09-08 21:58:39 +05:30
parent fab5c269ef
commit 6e22ceac98
8 changed files with 14976 additions and 10661 deletions

View File

@@ -55,10 +55,8 @@ export default class Encoder {
}
}
writeString(token: string, i: boolean = null) {
if (token === 'c.us') {
token = 's.whatsapp.net'
}
if (token === 'c.us') token = 's.whatsapp.net'
const tokenIndex = WA.SingleByteTokens.indexOf(token)
if (!i && token === 's.whatsapp.net') {
this.writeToken(tokenIndex)