Remove MXDecryptionFailureDelegate in flavor of agnostic MXAnalyticsDelegate

This commit is contained in:
manuroe
2020-11-05 12:09:10 +01:00
parent da8c7f2ae9
commit 51966926d9
6 changed files with 17 additions and 37 deletions
@@ -20,8 +20,6 @@
@import MatrixSDK;
@protocol MXDecryptionFailureDelegate;
@interface DecryptionFailureTracker : NSObject
/**
@@ -34,7 +32,7 @@
/**
The delegate object to receive analytics events.
*/
@property (nonatomic) id<MXDecryptionFailureDelegate> delegate;
@property (nonatomic) id<MXAnalyticsDelegate> delegate;
/**
Report an event unable to decrypt.
@@ -54,18 +52,3 @@
- (void)dispatch;
@end
/**
The `MXDecryptionFailureDelegate` protocol receives some stats computed by
`DecryptionFailureTracker`.
*/
@protocol MXDecryptionFailureDelegate <NSObject>
/**
Stats for decryption failures.
@param failuresCounts the number of errors per failure reason.
*/
- (void)trackFailures:(NSDictionary<NSString*, NSNumber*> *)failuresCounts;
@end