Skip to content

Commit 04c1dfe

Browse files
RiotRobotuhoreg
andauthored
Use the correct sender key when checking shared secret (#2730) (#2731)
(cherry picked from commit 890a840) Co-authored-by: Hubert Chathi <hubertc@matrix.org>
1 parent 07476a0 commit 04c1dfe

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)