mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-18 06:35:35 +08:00
Only track decryption failures
This commit is contained in:
parent
0934006817
commit
64b86108d0
@ -1311,9 +1311,7 @@ export default React.createClass({
|
||||
// XXX: This will do a HTTP request for each Event.decrypted event
|
||||
cli.on("Event.decrypted", (e) => {
|
||||
if (e.isDecryptionFailure()) {
|
||||
Analytics.trackEvent('E2E', 'Decryption result', 'failure');
|
||||
} else {
|
||||
Analytics.trackEvent('E2E', 'Decryption result', 'success');
|
||||
Analytics.trackEvent('E2E', 'Decryption failure');
|
||||
}
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user