fix: do not send accountSignatureKey in retry

This commit is contained in:
Adhiraj Singh
2022-07-19 21:30:18 +05:30
parent 4e85a10043
commit fad63f1fd2

View File

@@ -77,7 +77,10 @@ export const makeMessagesRecvSocket = (config: SocketConfig) => {
const { account, signedPreKey, signedIdentityKey: identityKey } = authState.creds
const deviceIdentity = proto.ADVSignedDeviceIdentity.encode(account!).finish()
const deviceIdentity = proto.ADVSignedDeviceIdentity.encode({
...account,
accountSignatureKey: undefined
}).finish()
await authState.keys.transaction(
async() => {
const receipt: BinaryNode = {