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()