Files
element-x-ios/ElementX/Sources/Services/HealthChat/HealthChatAccountStatus.swift
T
Sedat Qaja d9524130fa feat(healthchat): advertise the account status in settings
Pending approval and an incomplete profile were only visible in the
members tab, which a new user has no reason to open.
2026-10-19 09:17:36 +02:00

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
}