Add specific UX for Expected UTDs due to membership (#2740)

* Add specific UX for Expected UTDs due to membership

* Update analytics package and snapshots.

* Add changelog
This commit is contained in:
Valere
2024-04-26 18:22:01 +02:00
committed by GitHub
parent 1b8d895e98
commit bd9a171c7c
16 changed files with 79 additions and 29 deletions
@@ -156,8 +156,13 @@ class UserSessionFlowCoordinator: FlowCoordinatorProtocol {
} else {
timeToDecryptMs = -1
}
analytics.trackError(context: nil, domain: .E2EE, name: .OlmKeysNotSentError, timeToDecryptMillis: timeToDecryptMs)
switch info.cause {
case .unknown:
analytics.trackError(context: nil, domain: .E2EE, name: .OlmKeysNotSentError, timeToDecryptMillis: timeToDecryptMs)
case .membership:
analytics.trackError(context: nil, domain: .E2EE, name: .HistoricalMessage, timeToDecryptMillis: timeToDecryptMs)
}
}
.store(in: &cancellables)
}