Skip to content

Commit 890a840

Browse files
authored
Use the correct sender key when checking shared secret (#2730)
1 parent b1ed972 commit 890a840

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/crypto/SecretStorage.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -549,7 +549,7 @@ export class SecretStorage {
549549

550550
const senderKeyUser = this.baseApis.crypto.deviceList.getUserByIdentityKey(
551551
olmlib.OLM_ALGORITHM,
552-
content.sender_key,
552+
event.getSenderKey() || "",
553553
);
554554
if (senderKeyUser !== event.getSender()) {
555555
logger.error("sending device does not belong to the user it claims to be from");

0 commit comments

Comments
 (0)