You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-05 23:10:41 +03:00
Only track decryption failures
This commit is contained in:
@@ -1311,9 +1311,7 @@ export default React.createClass({
|
|||||||
// XXX: This will do a HTTP request for each Event.decrypted event
|
// XXX: This will do a HTTP request for each Event.decrypted event
|
||||||
cli.on("Event.decrypted", (e) => {
|
cli.on("Event.decrypted", (e) => {
|
||||||
if (e.isDecryptionFailure()) {
|
if (e.isDecryptionFailure()) {
|
||||||
Analytics.trackEvent('E2E', 'Decryption result', 'failure');
|
Analytics.trackEvent('E2E', 'Decryption failure');
|
||||||
} else {
|
|
||||||
Analytics.trackEvent('E2E', 'Decryption result', 'success');
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user