fix algorithm ReferenceError

This commit is contained in:
MTRNord 2017-05-23 19:00:30 +02:00 committed by David Baker
parent dd1c50ce80
commit 9bce417400

View File

@ -176,7 +176,7 @@ function textForHistoryVisibilityEvent(event) {
function textForEncryptionEvent(event) {
var senderName = event.sender ? event.sender.name : event.getSender();
return _t('%(senderName)s turned on end-to-end encryption (algorithm %(algorithm)s)', {senderName: senderName, algorithm: algorithm});
return _t('%(senderName)s turned on end-to-end encryption (algorithm %(algorithm)s)', {senderName: senderName, algorithm: event.getContent().algorithm});
}
// Currently will only display a change if a user's power level is changed