Skip to content

Commit

Permalink
Fix bug in verifying megolm event senders
Browse files Browse the repository at this point in the history
1a03e53 introduced a bug which mixed up the keys_proved and the
keys_claimed. Switch them around again so that megolm messages are correctly
tied back to the sending device.
  • Loading branch information
richvdh committed Nov 16, 2016
1 parent 909b56d commit 5b4aedd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/crypto/algorithms/megolm.js
Original file line number Diff line number Diff line change
Expand Up @@ -501,7 +501,7 @@ MegolmDecryption.prototype.decryptEvent = function(event) {
);
}

event.setClearData(payload, res.keysClaimed, res.keysProved);
event.setClearData(payload, res.keysProved, res.keysClaimed);
};


Expand Down

0 comments on commit 5b4aedd

Please sign in to comment.