From 4785676903f01574b3e6e20cde9835d0eb746db4 Mon Sep 17 00:00:00 2001 From: Naomi Plasterer Date: Thu, 31 Aug 2023 13:59:55 -0700 Subject: [PATCH] fix: switch the direction of the comparison --- src/keystore/InMemoryKeystore.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/keystore/InMemoryKeystore.ts b/src/keystore/InMemoryKeystore.ts index 4b6a5cc9..dc6244a4 100644 --- a/src/keystore/InMemoryKeystore.ts +++ b/src/keystore/InMemoryKeystore.ts @@ -279,7 +279,7 @@ export default class InMemoryKeystore implements Keystore { const secret = await this.v2Keys.sharedSecret( recipient, this.v2Keys.getCurrentPreKey().publicKey, - myAddress > theirAddress + myAddress < theirAddress ) const sortedAddresses = [myAddress, theirAddress].sort()