mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-02 21:33:26 +00:00
Update sdk to 25.10.07-2 (#4586)
* update sdk to 25.10.07 * update generated mocks for the SDK * update the sdk to build number 2 * fixing compile errors
This commit is contained in:
@@ -11069,6 +11069,75 @@ open class NotificationSettingsSDKMock: MatrixRustSDK.NotificationSettings, @unc
|
||||
}
|
||||
}
|
||||
|
||||
//MARK: - getRawPushRules
|
||||
|
||||
open var getRawPushRulesThrowableError: Error?
|
||||
var getRawPushRulesUnderlyingCallsCount = 0
|
||||
open var getRawPushRulesCallsCount: Int {
|
||||
get {
|
||||
if Thread.isMainThread {
|
||||
return getRawPushRulesUnderlyingCallsCount
|
||||
} else {
|
||||
var returnValue: Int? = nil
|
||||
DispatchQueue.main.sync {
|
||||
returnValue = getRawPushRulesUnderlyingCallsCount
|
||||
}
|
||||
|
||||
return returnValue!
|
||||
}
|
||||
}
|
||||
set {
|
||||
if Thread.isMainThread {
|
||||
getRawPushRulesUnderlyingCallsCount = newValue
|
||||
} else {
|
||||
DispatchQueue.main.sync {
|
||||
getRawPushRulesUnderlyingCallsCount = newValue
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
open var getRawPushRulesCalled: Bool {
|
||||
return getRawPushRulesCallsCount > 0
|
||||
}
|
||||
|
||||
var getRawPushRulesUnderlyingReturnValue: String?
|
||||
open var getRawPushRulesReturnValue: String? {
|
||||
get {
|
||||
if Thread.isMainThread {
|
||||
return getRawPushRulesUnderlyingReturnValue
|
||||
} else {
|
||||
var returnValue: String?? = nil
|
||||
DispatchQueue.main.sync {
|
||||
returnValue = getRawPushRulesUnderlyingReturnValue
|
||||
}
|
||||
|
||||
return returnValue!
|
||||
}
|
||||
}
|
||||
set {
|
||||
if Thread.isMainThread {
|
||||
getRawPushRulesUnderlyingReturnValue = newValue
|
||||
} else {
|
||||
DispatchQueue.main.sync {
|
||||
getRawPushRulesUnderlyingReturnValue = newValue
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
open var getRawPushRulesClosure: (() async throws -> String?)?
|
||||
|
||||
open override func getRawPushRules() async throws -> String? {
|
||||
if let error = getRawPushRulesThrowableError {
|
||||
throw error
|
||||
}
|
||||
getRawPushRulesCallsCount += 1
|
||||
if let getRawPushRulesClosure = getRawPushRulesClosure {
|
||||
return try await getRawPushRulesClosure()
|
||||
} else {
|
||||
return getRawPushRulesReturnValue
|
||||
}
|
||||
}
|
||||
|
||||
//MARK: - getRoomNotificationSettings
|
||||
|
||||
open var getRoomNotificationSettingsRoomIdIsEncryptedIsOneToOneThrowableError: Error?
|
||||
|
||||
@@ -135,7 +135,8 @@ private extension SpaceRoom {
|
||||
via: [String] = []) {
|
||||
self.init(roomId: id,
|
||||
canonicalAlias: canonicalAlias,
|
||||
name: name,
|
||||
displayName: name,
|
||||
rawName: name,
|
||||
topic: topic,
|
||||
avatarUrl: avatarURL?.absoluteString,
|
||||
roomType: isSpace ? .space : .room,
|
||||
|
||||
@@ -16,7 +16,7 @@ class SpaceRoomProxy: SpaceRoomProxyProtocol {
|
||||
}
|
||||
|
||||
lazy var id = spaceRoom.roomId
|
||||
var name: String? { spaceRoom.name }
|
||||
var name: String? { spaceRoom.displayName }
|
||||
var avatarURL: URL? { spaceRoom.avatarUrl.flatMap(URL.init) }
|
||||
|
||||
var isSpace: Bool { spaceRoom.roomType == .space }
|
||||
|
||||
Reference in New Issue
Block a user