mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-05 11:58:32 +00:00
@@ -17293,35 +17293,6 @@ open class SyncServiceBuilderSDKMock: MatrixRustSDK.SyncServiceBuilder, @uncheck
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//MARK: - withProfilesExtension
|
|
||||||
|
|
||||||
private let withProfilesExtensionCallsCountLock = NSLock()
|
|
||||||
private var withProfilesExtensionUnderlyingCallsCount = 0
|
|
||||||
open var withProfilesExtensionCallsCount: Int {
|
|
||||||
get { withProfilesExtensionCallsCountLock.withLock { withProfilesExtensionUnderlyingCallsCount } }
|
|
||||||
set { withProfilesExtensionCallsCountLock.withLock { withProfilesExtensionUnderlyingCallsCount = newValue } }
|
|
||||||
}
|
|
||||||
open var withProfilesExtensionCalled: Bool {
|
|
||||||
return withProfilesExtensionCallsCount > 0
|
|
||||||
}
|
|
||||||
|
|
||||||
private let withProfilesExtensionReturnValueLock = NSLock()
|
|
||||||
open var withProfilesExtensionUnderlyingReturnValue: SyncServiceBuilder!
|
|
||||||
open var withProfilesExtensionReturnValue: SyncServiceBuilder! {
|
|
||||||
get { withProfilesExtensionReturnValueLock.withLock { withProfilesExtensionUnderlyingReturnValue } }
|
|
||||||
set { withProfilesExtensionReturnValueLock.withLock { withProfilesExtensionUnderlyingReturnValue = newValue } }
|
|
||||||
}
|
|
||||||
open var withProfilesExtensionClosure: (() -> SyncServiceBuilder)?
|
|
||||||
|
|
||||||
open override func withProfilesExtension() -> SyncServiceBuilder {
|
|
||||||
withProfilesExtensionCallsCountLock.withLock { withProfilesExtensionUnderlyingCallsCount += 1 }
|
|
||||||
if let withProfilesExtensionClosure = withProfilesExtensionClosure {
|
|
||||||
return withProfilesExtensionClosure()
|
|
||||||
} else {
|
|
||||||
return withProfilesExtensionReturnValue
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
//MARK: - withRoomListConnectionId
|
//MARK: - withRoomListConnectionId
|
||||||
|
|
||||||
private let withRoomListConnectionIdConnectionIdCallsCountLock = NSLock()
|
private let withRoomListConnectionIdConnectionIdCallsCountLock = NSLock()
|
||||||
@@ -19346,24 +19317,6 @@ open class TimelineEventSDKMock: MatrixRustSDK.TimelineEvent, @unchecked Sendabl
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
open class TimelineEventFilterSDKMock: MatrixRustSDK.TimelineEventFilter, @unchecked Sendable {
|
|
||||||
public init() {
|
|
||||||
super.init(noHandle: .init())
|
|
||||||
}
|
|
||||||
|
|
||||||
public required init(unsafeFromHandle handle: UInt64) {
|
|
||||||
fatalError("init(unsafeFromHandle:) has not been implemented")
|
|
||||||
}
|
|
||||||
|
|
||||||
fileprivate var handle: UInt64 {
|
|
||||||
get { return underlyingHandle }
|
|
||||||
set(value) { underlyingHandle = value }
|
|
||||||
}
|
|
||||||
fileprivate var underlyingHandle: UInt64!
|
|
||||||
static func reset()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
}
|
|
||||||
open class TimelineItemSDKMock: MatrixRustSDK.TimelineItem, @unchecked Sendable {
|
open class TimelineItemSDKMock: MatrixRustSDK.TimelineItem, @unchecked Sendable {
|
||||||
public init() {
|
public init() {
|
||||||
super.init(noHandle: .init())
|
super.init(noHandle: .init())
|
||||||
|
|||||||
@@ -10817,7 +10817,7 @@
|
|||||||
repositoryURL = "https://github.com/element-hq/matrix-rust-components-swift";
|
repositoryURL = "https://github.com/element-hq/matrix-rust-components-swift";
|
||||||
requirement = {
|
requirement = {
|
||||||
kind = exactVersion;
|
kind = exactVersion;
|
||||||
version = 26.09.07;
|
version = 26.09.08;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
701C7BEF8F70F7A83E852DCC /* XCRemoteSwiftPackageReference "GZIP" */ = {
|
701C7BEF8F70F7A83E852DCC /* XCRemoteSwiftPackageReference "GZIP" */ = {
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"originHash" : "63650c1515ae2de7e4e00a75e7d01a8dc3c687696663f78bb9d3902cab711634",
|
"originHash" : "792b23b07d60beec539354df3338b50d91cb38b47c8d2d9b3552f161843e0682",
|
||||||
"pins" : [
|
"pins" : [
|
||||||
{
|
{
|
||||||
"identity" : "compound-design-tokens",
|
"identity" : "compound-design-tokens",
|
||||||
@@ -167,8 +167,8 @@
|
|||||||
"kind" : "remoteSourceControl",
|
"kind" : "remoteSourceControl",
|
||||||
"location" : "https://github.com/element-hq/matrix-rust-components-swift",
|
"location" : "https://github.com/element-hq/matrix-rust-components-swift",
|
||||||
"state" : {
|
"state" : {
|
||||||
"revision" : "22e6fda8817d8fcf6fc30393ee153befa1c84745",
|
"revision" : "bd4fe022902bb3c3cbeb017cbf60516b6ef7f6f0",
|
||||||
"version" : "26.9.7"
|
"version" : "26.9.8"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -19,7 +19,6 @@ nonisolated extension SyncServiceBuilderSDKMock {
|
|||||||
|
|
||||||
withOfflineModeClosure = { [unowned self] in self }
|
withOfflineModeClosure = { [unowned self] in self }
|
||||||
withSharePosEnableClosure = { [unowned self] _ in self }
|
withSharePosEnableClosure = { [unowned self] _ in self }
|
||||||
withProfilesExtensionClosure = { [unowned self] in self }
|
|
||||||
finishReturnValue = configuration.syncService
|
finishReturnValue = configuration.syncService
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1527,7 +1527,6 @@ private struct ClientProxyServices {
|
|||||||
.syncService()
|
.syncService()
|
||||||
.withOfflineMode()
|
.withOfflineMode()
|
||||||
.withSharePos(enable: true)
|
.withSharePos(enable: true)
|
||||||
.withProfilesExtension()
|
|
||||||
.finish()
|
.finish()
|
||||||
|
|
||||||
let roomListService = syncService.roomListService()
|
let roomListService = syncService.roomListService()
|
||||||
|
|||||||
@@ -795,19 +795,19 @@ class JoinedRoomProxy: JoinedRoomProxyProtocol {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private static let excludedEventsFilter: TimelineEventFilter = {
|
private static let excludedEventsFilter: TimelineEventFilter = {
|
||||||
var stateEventFilters: [StateEventType] = [.roomCanonicalAlias,
|
var stateEventFilters: [TimelineEventType] = [.roomCanonicalAlias,
|
||||||
.roomGuestAccess,
|
.roomGuestAccess,
|
||||||
.roomHistoryVisibility,
|
.roomHistoryVisibility,
|
||||||
.roomJoinRules,
|
.roomJoinRules,
|
||||||
.roomPinnedEvents,
|
.roomPinnedEvents,
|
||||||
.roomPowerLevels,
|
.roomPowerLevels,
|
||||||
.roomServerAcl,
|
.roomServerAcl,
|
||||||
.roomTombstone,
|
.roomTombstone,
|
||||||
.spaceChild,
|
.spaceChild,
|
||||||
.spaceParent,
|
.spaceParent,
|
||||||
.policyRuleRoom,
|
.policyRuleRoom,
|
||||||
.policyRuleServer,
|
.policyRuleServer,
|
||||||
.policyRuleUser]
|
.policyRuleUser]
|
||||||
return .excludeEventTypes(eventTypes: stateEventFilters.map { FilterTimelineEventType.state(eventType: $0) })
|
return .exclude(stateEventFilters.map { TimelineEventCondition.eventType($0) })
|
||||||
}()
|
}()
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -74,7 +74,7 @@ packages:
|
|||||||
# Element/Matrix dependencies
|
# Element/Matrix dependencies
|
||||||
MatrixRustSDK:
|
MatrixRustSDK:
|
||||||
url: https://github.com/element-hq/matrix-rust-components-swift
|
url: https://github.com/element-hq/matrix-rust-components-swift
|
||||||
exactVersion: 26.09.07
|
exactVersion: 26.09.08
|
||||||
# path: ../matrix-rust-sdk
|
# path: ../matrix-rust-sdk
|
||||||
Compound:
|
Compound:
|
||||||
path: compound-ios
|
path: compound-ios
|
||||||
|
|||||||
Reference in New Issue
Block a user