mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-02 12:07:55 +00:00
Bump the RustSDK to v1.0.78-alpha
This commit is contained in:
committed by
Stefan Ceriu
parent
d120a53ebd
commit
3bbc16fd64
@@ -384,6 +384,31 @@ class SDKClientMock: SDKClientProtocol {
|
||||
logoutCallsCount += 1
|
||||
try logoutClosure?()
|
||||
}
|
||||
//MARK: - `notificationSlidingSync`
|
||||
|
||||
public var notificationSlidingSyncIdListenerThrowableError: Error?
|
||||
public var notificationSlidingSyncIdListenerCallsCount = 0
|
||||
public var notificationSlidingSyncIdListenerCalled: Bool {
|
||||
return notificationSlidingSyncIdListenerCallsCount > 0
|
||||
}
|
||||
public var notificationSlidingSyncIdListenerReceivedArguments: (`id`: String, `listener`: NotificationSyncListener)?
|
||||
public var notificationSlidingSyncIdListenerReceivedInvocations: [(`id`: String, `listener`: NotificationSyncListener)] = []
|
||||
public var notificationSlidingSyncIdListenerReturnValue: NotificationSync!
|
||||
public var notificationSlidingSyncIdListenerClosure: ((String, NotificationSyncListener) throws -> NotificationSync)?
|
||||
|
||||
public func `notificationSlidingSync`(`id`: String, `listener`: NotificationSyncListener) throws -> NotificationSync {
|
||||
if let error = notificationSlidingSyncIdListenerThrowableError {
|
||||
throw error
|
||||
}
|
||||
notificationSlidingSyncIdListenerCallsCount += 1
|
||||
notificationSlidingSyncIdListenerReceivedArguments = (id: id, listener: listener)
|
||||
notificationSlidingSyncIdListenerReceivedInvocations.append((id: id, listener: listener))
|
||||
if let notificationSlidingSyncIdListenerClosure = notificationSlidingSyncIdListenerClosure {
|
||||
return try notificationSlidingSyncIdListenerClosure(`id`, `listener`)
|
||||
} else {
|
||||
return notificationSlidingSyncIdListenerReturnValue
|
||||
}
|
||||
}
|
||||
//MARK: - `restoreSession`
|
||||
|
||||
public var restoreSessionSessionThrowableError: Error?
|
||||
|
||||
Reference in New Issue
Block a user