Stop checking the report reason for empty.

This commit is contained in:
Stefan Ceriu
2025-07-24 14:00:38 +03:00
committed by Stefan Ceriu
parent 43d3282d90
commit 602a13fec8
2 changed files with 2 additions and 2 deletions
@@ -58,7 +58,7 @@ class DeclineAndBlockScreenViewModel: DeclineAndBlockScreenViewModelType, Declin
case .success:
var shouldShowFailure = false
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 {