mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-04 10:33:45 +00:00
Stop checking the report reason for empty.
This commit is contained in:
committed by
Stefan Ceriu
parent
43d3282d90
commit
602a13fec8
@@ -58,7 +58,7 @@ class DeclineAndBlockScreenViewModel: DeclineAndBlockScreenViewModelType, Declin
|
|||||||
case .success:
|
case .success:
|
||||||
var shouldShowFailure = false
|
var shouldShowFailure = false
|
||||||
if state.bindings.shouldReport {
|
if state.bindings.shouldReport {
|
||||||
shouldShowFailure = await clientProxy.reportRoomForIdentifier(roomID, reason: state.bindings.reportReason.isEmpty ? "" : state.bindings.reportReason).isFailure
|
shouldShowFailure = await clientProxy.reportRoomForIdentifier(roomID, reason: state.bindings.reportReason).isFailure
|
||||||
}
|
}
|
||||||
|
|
||||||
if state.bindings.shouldBlockUser {
|
if state.bindings.shouldBlockUser {
|
||||||
|
|||||||
@@ -38,7 +38,7 @@ class ReportRoomScreenViewModel: ReportRoomScreenViewModelType, ReportRoomScreen
|
|||||||
|
|
||||||
private func report() async {
|
private func report() async {
|
||||||
showLoadingIndicator()
|
showLoadingIndicator()
|
||||||
let result = await roomProxy.reportRoom(reason: state.bindings.reason.isEmpty ? "" : state.bindings.reason)
|
let result = await roomProxy.reportRoom(reason: state.bindings.reason)
|
||||||
|
|
||||||
switch result {
|
switch result {
|
||||||
case .success:
|
case .success:
|
||||||
|
|||||||
Reference in New Issue
Block a user