Settings discovery: In three pid details screen, display a pending verification alert on email validation. Use a fallback API mechanism in view model for older homeservers that do no support 3pid rebind.

This commit is contained in:
SBiOSoftWhare
2019-09-11 16:27:32 +02:00
parent c4f2ca117a
commit c4caccfaeb
6 changed files with 156 additions and 69 deletions
@@ -23,6 +23,12 @@ enum SettingsDiscoveryViewState {
case error(Error)
}
/// SettingsDiscoveryTableViewSection `loaded` view state dipslay modes
///
/// - noIdentityServer: No identity server configured.
/// - termsNotSigned: Identity server terms are not signed.
/// - noThreePidsAdded: No three pids added to the user HS account.
/// - threePidsAdded: Three pids added to the user HS account.
enum SettingsDiscoveryDisplayMode {
case noIdentityServer
case termsNotSigned(host: String)