mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 06:55:59 +00:00
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:
@@ -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?
|
||||
|
||||
Reference in New Issue
Block a user