Cleaner upserts

This commit is contained in:
Adhiraj Singh
2020-12-18 16:49:28 +05:30
parent ccab24cdb2
commit b6a8d02038
9 changed files with 172 additions and 175 deletions

View File

@@ -87,7 +87,7 @@ export class WAConnection extends Base {
response = await this.waitForMessage('s2', true)
}
const newUser = await this.validateNewConnection(response[1]) // validate the connection
const newUser = this.validateNewConnection(response[1]) // validate the connection
if (newUser.jid !== this.user?.jid) {
isNewUser = true
// clear out old data