mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 16:10:20 +00:00
Add Block user to Report Content screen. (#742)
This commit is contained in:
@@ -427,6 +427,27 @@ class RoomProxyMock: RoomProxyProtocol {
|
||||
return membersReturnValue
|
||||
}
|
||||
}
|
||||
//MARK: - ignoreUser
|
||||
|
||||
var ignoreUserCallsCount = 0
|
||||
var ignoreUserCalled: Bool {
|
||||
return ignoreUserCallsCount > 0
|
||||
}
|
||||
var ignoreUserReceivedUserID: String?
|
||||
var ignoreUserReceivedInvocations: [String] = []
|
||||
var ignoreUserReturnValue: Result<Void, RoomProxyError>!
|
||||
var ignoreUserClosure: ((String) async -> Result<Void, RoomProxyError>)?
|
||||
|
||||
func ignoreUser(_ userID: String) async -> Result<Void, RoomProxyError> {
|
||||
ignoreUserCallsCount += 1
|
||||
ignoreUserReceivedUserID = userID
|
||||
ignoreUserReceivedInvocations.append(userID)
|
||||
if let ignoreUserClosure = ignoreUserClosure {
|
||||
return await ignoreUserClosure(userID)
|
||||
} else {
|
||||
return ignoreUserReturnValue
|
||||
}
|
||||
}
|
||||
//MARK: - retryDecryption
|
||||
|
||||
var retryDecryptionForCallsCount = 0
|
||||
|
||||
Reference in New Issue
Block a user