mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-10-31 08:15:24 +00:00
d9524130fa
Pending approval and an incomplete profile were only visible in the members tab, which a new user has no reason to open.
21 lines
759 B
Swift
21 lines
759 B
Swift
//
|
|
// Copyright 2026 Novaloop AG
|
|
//
|
|
// SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial.
|
|
// Please see LICENSE files in the repository root for full details.
|
|
//
|
|
|
|
import Foundation
|
|
|
|
/// What is holding an account back from using the whole app.
|
|
nonisolated enum HealthChatAccountStatus: Equatable {
|
|
/// Nothing is known, e.g. the API is unreachable. Renders nothing — never an error.
|
|
case unknown
|
|
/// Not approved by an admin yet. Takes precedence over ``incompleteProfile``,
|
|
/// as completing a profile does nothing for an unapproved account.
|
|
case pendingApproval
|
|
/// Approved, but the server reports missing profile fields. The message is its wording.
|
|
case incompleteProfile(message: String)
|
|
case ok
|
|
}
|