From fad63f1fd2a5e1801c16dfbd48f8f0ae0a9ae50d Mon Sep 17 00:00:00 2001 From: Adhiraj Singh Date: Tue, 19 Jul 2022 21:30:18 +0530 Subject: [PATCH] fix: do not send accountSignatureKey in retry --- src/Socket/messages-recv.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Socket/messages-recv.ts b/src/Socket/messages-recv.ts index 31ec360..93526c7 100644 --- a/src/Socket/messages-recv.ts +++ b/src/Socket/messages-recv.ts @@ -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 = {