Skip to content

Commit

Permalink
Use the correct sender key when checking shared secret (#2730)
Browse files Browse the repository at this point in the history
(cherry picked from commit 890a840)
  • Loading branch information
uhoreg authored and github-actions[bot] committed Oct 4, 2022
1 parent 07476a0 commit 75e7c8d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/crypto/SecretStorage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -549,7 +549,7 @@ export class SecretStorage {

const senderKeyUser = this.baseApis.crypto.deviceList.getUserByIdentityKey(
olmlib.OLM_ALGORITHM,
content.sender_key,
event.getSenderKey() || "",
);
if (senderKeyUser !== event.getSender()) {
logger.error("sending device does not belong to the user it claims to be from");
Expand Down

0 comments on commit 75e7c8d

Please sign in to comment.