* created the basic navigation and files * updated the logic so that the buttons that do not have permissions won't show * added the empty state * progress in making the list UI * update tests * UI improvements * fixed an issue with media provider * update button style * fixed a navigation bug * pr suggestions * pr suggestions
25 lines
582 B
Swift
25 lines
582 B
Swift
//
|
|
// Copyright 2022-2024 New Vector Ltd.
|
|
//
|
|
// SPDX-License-Identifier: AGPL-3.0-only
|
|
// Please see LICENSE in the repository root for full details.
|
|
//
|
|
|
|
import Foundation
|
|
|
|
enum KnockRequestsListScreenViewModelAction { }
|
|
|
|
struct KnockRequestsListScreenViewState: BindableState {
|
|
var requests: [KnockRequestCellInfo] = []
|
|
var canAccept = false
|
|
var canDecline = false
|
|
var canBan = false
|
|
}
|
|
|
|
enum KnockRequestsListScreenViewAction {
|
|
case acceptAllRequests
|
|
case acceptRequest(userID: String)
|
|
case declineRequest(userID: String)
|
|
case ban(userID: String)
|
|
}
|