1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-11-26 17:03:12 +03:00

Fix error code for Olm group message decryption

This commit is contained in:
Luke Barnard
2018-07-04 14:33:02 +01:00
parent 70ef8760cc
commit b63149b36a

View File

@@ -641,8 +641,9 @@ MegolmDecryption.prototype.decryptEvent = async function(event) {
if (e.message === 'OLM.UNKNOWN_MESSAGE_INDEX') {
this._requestKeysForEvent(event);
}
// TODO: make OlmDevice throw base.DecryptionErrors too
throw new base.DecryptionError(
"OLM_UNKNOWN_MESSAGE_INDEX",
"OLM_DECRYPT_GROUP_MESSAGE_ERROR",
e.toString(), {
session: content.sender_key + '|' + content.session_id,
},