mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-02 21:33:26 +00:00
updated SDK and improved report flow
the report flow is now based on the matrix version and the new one will only be used if the SDK checks if the server supports it.
This commit is contained in:
@@ -83,7 +83,7 @@ class JoinRoomScreenViewModel: JoinRoomScreenViewModelType, JoinRoomScreenViewMo
|
||||
case .dismiss:
|
||||
actionsSubject.send(.dismiss)
|
||||
case .declineInviteAndBlock(let userID):
|
||||
showDeclineAndBlockConfirmationAlert(userID: userID)
|
||||
Task { await showDeclineAndBlockConfirmationAlert(userID: userID) }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -322,8 +322,8 @@ class JoinRoomScreenViewModel: JoinRoomScreenViewModelType, JoinRoomScreenViewMo
|
||||
secondaryButton: .init(title: L10n.screenJoinRoomCancelKnockAlertConfirmation, role: .destructive) { Task { await self.cancelKnock() } })
|
||||
}
|
||||
|
||||
private func showDeclineAndBlockConfirmationAlert(userID: String) {
|
||||
if appSettings.reportInviteEnabled {
|
||||
private func showDeclineAndBlockConfirmationAlert(userID: String) async {
|
||||
if await clientProxy.isReportRoomSupported {
|
||||
actionsSubject.send(.presentDeclineAndBlock(userID: userID))
|
||||
} else {
|
||||
state.bindings.alertInfo = .init(id: .declineInviteAndBlock,
|
||||
|
||||
Reference in New Issue
Block a user