Change user display name and avatar (#1718)

* Fixes #1715, #1716 - Add new user profile editing screen

* Bump SDK, adopt new `client.removeAvatar()` method

* Address PR review comments
This commit is contained in:
Stefan Ceriu
2023-09-15 16:20:33 +03:00
committed by GitHub
parent b3a0680d64
commit fe711a9a40
20 changed files with 700 additions and 69 deletions
@@ -431,6 +431,22 @@ class SDKClientMock: SDKClientProtocol {
return notificationClientProcessSetupReturnValue
}
}
//MARK: - removeAvatar
public var removeAvatarThrowableError: Error?
public var removeAvatarCallsCount = 0
public var removeAvatarCalled: Bool {
return removeAvatarCallsCount > 0
}
public var removeAvatarClosure: (() throws -> Void)?
public func removeAvatar() throws {
if let error = removeAvatarThrowableError {
throw error
}
removeAvatarCallsCount += 1
try removeAvatarClosure?()
}
//MARK: - restoreSession
public var restoreSessionSessionThrowableError: Error?