Skip to content

Commit

Permalink
fix: switch the direction of the comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
nplasterer committed Aug 31, 2023
1 parent 9fbb995 commit 4785676
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/keystore/InMemoryKeystore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 4785676

Please sign in to comment.