mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 06:55:59 +00:00
Report room and decline & block screens tweaks (#4044)
* report rom and decline and block screens tweaks - Use the copies: "Leave room" and "Report room" everywhere, also in DMs - Report reason in report room is now mandatory. - Report reason in decline and block is now mandatory if the report action is set to on. - Generic alert for failure of main API in both report room and decline and block has been added * report room and decline and block screen previews
This commit is contained in:
@@ -37,6 +37,11 @@ class DeclineAndBlockScreenViewModelTests: XCTestCase {
|
||||
XCTAssertTrue(context.viewState.isDeclineDisabled)
|
||||
XCTAssertFalse(context.shouldReport)
|
||||
XCTAssertFalse(context.shouldBlockUser)
|
||||
context.shouldReport = true
|
||||
// Should report set to `true` always requires a non empty reason
|
||||
XCTAssertTrue(context.viewState.isDeclineDisabled)
|
||||
context.reportReason = "Test reason"
|
||||
XCTAssertFalse(context.viewState.isDeclineDisabled)
|
||||
}
|
||||
|
||||
func testDeclineBlockAndReport() async throws {
|
||||
|
||||
Reference in New Issue
Block a user