1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-11-05 23:10:41 +03:00

Include decryption error in decryption failure metrics

This commit is contained in:
Luke Barnard
2018-06-13 11:21:26 +01:00
parent 230de44071
commit 3cadbd3974

View File

@@ -1312,7 +1312,7 @@ export default React.createClass({
// if the decryption was a failure
cli.on("Event.decrypted", (e) => {
if (e.isDecryptionFailure()) {
Analytics.trackEvent('E2E', 'Decryption failure');
Analytics.trackEvent('E2E', 'Decryption failure', 'ev.content.body: ' + e.getContent().body);
}
});