mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 06:55:59 +00:00
Update SDK to 1.0.102-alpha (#1408)
* Update SDK to 1.0.102-alpha * Log error * Notification Improvements API part 1 (#1410) * changes * WIP * progress * updated test * removed unused * code improvement * Process diffs as batches provided by the SDK. --------- Co-authored-by: Mauro <34335419+Velin92@users.noreply.github.com> Co-authored-by: Doug <douglase@element.io>
This commit is contained in:
@@ -378,17 +378,21 @@ class SDKClientMock: SDKClientProtocol {
|
||||
}
|
||||
//MARK: - `notificationClient`
|
||||
|
||||
public var notificationClientThrowableError: Error?
|
||||
public var notificationClientCallsCount = 0
|
||||
public var notificationClientCalled: Bool {
|
||||
return notificationClientCallsCount > 0
|
||||
}
|
||||
public var notificationClientReturnValue: NotificationClientBuilder!
|
||||
public var notificationClientClosure: (() -> NotificationClientBuilder)?
|
||||
public var notificationClientClosure: (() throws -> NotificationClientBuilder)?
|
||||
|
||||
public func `notificationClient`() -> NotificationClientBuilder {
|
||||
public func `notificationClient`() throws -> NotificationClientBuilder {
|
||||
if let error = notificationClientThrowableError {
|
||||
throw error
|
||||
}
|
||||
notificationClientCallsCount += 1
|
||||
if let notificationClientClosure = notificationClientClosure {
|
||||
return notificationClientClosure()
|
||||
return try notificationClientClosure()
|
||||
} else {
|
||||
return notificationClientReturnValue
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user