Ensure E2EE never tracks UnknownError

This commit is contained in:
Andy Uhnak
2023-01-26 11:15:31 +00:00
parent d76b42bc85
commit 946ca1d1be
4 changed files with 9 additions and 9 deletions

View File

@@ -105,12 +105,9 @@ NSString *const kDecryptionFailureTrackerAnalyticsCategory = @"e2e.failure";
reason = DecryptionFailureReasonOlmIndexError;
break;
case MXDecryptingErrorEncryptionNotEnabledCode:
case MXDecryptingErrorUnableToDecryptCode:
reason = DecryptionFailureReasonUnexpected;
break;
default:
// All other error codes will be tracked as `OlmUnspecifiedError` and will include `context` containing
// the actual error code and localized description
reason = DecryptionFailureReasonUnspecified;
break;
}