Crypto: Telemetry: Categorise e2e failures

#1894
This commit is contained in:
manuroe
2018-07-02 17:14:39 +02:00
parent a11d09a510
commit 52fed220ef
5 changed files with 62 additions and 15 deletions
+12
View File
@@ -16,6 +16,18 @@
#import <Foundation/Foundation.h>
/**
Failure reasons as defined in https://docs.google.com/document/d/1es7cTCeJEXXfRCTRgZerAM2Wg5ZerHjvlpfTW-gsOfI.
*/
struct DecryptionFailureReasonStruct
{
__unsafe_unretained NSString * const unspecified;
__unsafe_unretained NSString * const olmKeysNotSent;
__unsafe_unretained NSString * const olmIndexError;
__unsafe_unretained NSString * const unexpected;
};
extern const struct DecryptionFailureReasonStruct DecryptionFailureReason;
/**
`DecryptionFailure` represents a decryption failure.
*/