mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-05 11:58:32 +00:00
Bump the Rust SDK to v26.01.06 (#4933)
This commit is contained in:
@@ -9735,7 +9735,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 = 25.12.19;
|
version = 26.1.6;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
701C7BEF8F70F7A83E852DCC /* XCRemoteSwiftPackageReference "GZIP" */ = {
|
701C7BEF8F70F7A83E852DCC /* XCRemoteSwiftPackageReference "GZIP" */ = {
|
||||||
|
|||||||
@@ -158,8 +158,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" : "bc1acbc8ee7e8271465a724e3b3f2339cd12d20b",
|
"revision" : "7e3bb4a7ca2d24c36a40e21124fbdac7409d9c9c",
|
||||||
"version" : "25.12.19"
|
"version" : "26.1.6"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -15,6 +15,8 @@ struct EventTimelineItemSDKMockConfiguration {
|
|||||||
var eventID: String = UUID().uuidString
|
var eventID: String = UUID().uuidString
|
||||||
var sender = ""
|
var sender = ""
|
||||||
var senderProfile: ProfileDetails?
|
var senderProfile: ProfileDetails?
|
||||||
|
var forwarder: String?
|
||||||
|
var forwarderProfile: ProfileDetails?
|
||||||
var isOwn = false
|
var isOwn = false
|
||||||
var content: TimelineItemContent = .msgLike(content: .init(kind: .redacted,
|
var content: TimelineItemContent = .msgLike(content: .init(kind: .redacted,
|
||||||
reactions: [],
|
reactions: [],
|
||||||
@@ -29,6 +31,8 @@ extension EventTimelineItem {
|
|||||||
eventOrTransactionId: .eventId(eventId: configuration.eventID),
|
eventOrTransactionId: .eventId(eventId: configuration.eventID),
|
||||||
sender: configuration.sender,
|
sender: configuration.sender,
|
||||||
senderProfile: configuration.senderProfile ?? .pending,
|
senderProfile: configuration.senderProfile ?? .pending,
|
||||||
|
forwarder: configuration.forwarder,
|
||||||
|
forwarderProfile: configuration.forwarderProfile,
|
||||||
isOwn: configuration.isOwn,
|
isOwn: configuration.isOwn,
|
||||||
isEditable: false,
|
isEditable: false,
|
||||||
content: configuration.content,
|
content: configuration.content,
|
||||||
|
|||||||
@@ -68,16 +68,16 @@ enum EncryptionAuthenticity: Hashable {
|
|||||||
extension EncryptionAuthenticity {
|
extension EncryptionAuthenticity {
|
||||||
init?(shieldState: ShieldState) {
|
init?(shieldState: ShieldState) {
|
||||||
switch shieldState {
|
switch shieldState {
|
||||||
case .red(let code, _):
|
case .red(let code):
|
||||||
self.init(shieldStateCode: code, color: .red)
|
self.init(shieldStateCode: code, color: .red)
|
||||||
case .grey(let code, _):
|
case .grey(let code):
|
||||||
self.init(shieldStateCode: code, color: .gray)
|
self.init(shieldStateCode: code, color: .gray)
|
||||||
case .none:
|
case .none:
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
init(shieldStateCode: ShieldStateCode, color: EncryptionAuthenticity.Color) {
|
init(shieldStateCode: TimelineEventShieldStateCode, color: EncryptionAuthenticity.Color) {
|
||||||
switch shieldStateCode {
|
switch shieldStateCode {
|
||||||
case .authenticityNotGuaranteed:
|
case .authenticityNotGuaranteed:
|
||||||
self = .notGuaranteed(color: color)
|
self = .notGuaranteed(color: color)
|
||||||
|
|||||||
@@ -10573,13 +10573,13 @@ open class LazyTimelineItemProviderSDKMock: MatrixRustSDK.LazyTimelineItemProvid
|
|||||||
open var getShieldsStrictReceivedStrict: Bool?
|
open var getShieldsStrictReceivedStrict: Bool?
|
||||||
open var getShieldsStrictReceivedInvocations: [Bool] = []
|
open var getShieldsStrictReceivedInvocations: [Bool] = []
|
||||||
|
|
||||||
open var getShieldsStrictUnderlyingReturnValue: ShieldState?
|
open var getShieldsStrictUnderlyingReturnValue: ShieldState!
|
||||||
open var getShieldsStrictReturnValue: ShieldState? {
|
open var getShieldsStrictReturnValue: ShieldState! {
|
||||||
get {
|
get {
|
||||||
if Thread.isMainThread {
|
if Thread.isMainThread {
|
||||||
return getShieldsStrictUnderlyingReturnValue
|
return getShieldsStrictUnderlyingReturnValue
|
||||||
} else {
|
} else {
|
||||||
var returnValue: ShieldState?? = nil
|
var returnValue: ShieldState? = nil
|
||||||
DispatchQueue.main.sync {
|
DispatchQueue.main.sync {
|
||||||
returnValue = getShieldsStrictUnderlyingReturnValue
|
returnValue = getShieldsStrictUnderlyingReturnValue
|
||||||
}
|
}
|
||||||
@@ -10597,9 +10597,9 @@ open class LazyTimelineItemProviderSDKMock: MatrixRustSDK.LazyTimelineItemProvid
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
open var getShieldsStrictClosure: ((Bool) -> ShieldState?)?
|
open var getShieldsStrictClosure: ((Bool) -> ShieldState)?
|
||||||
|
|
||||||
open override func getShields(strict: Bool) -> ShieldState? {
|
open override func getShields(strict: Bool) -> ShieldState {
|
||||||
getShieldsStrictCallsCount += 1
|
getShieldsStrictCallsCount += 1
|
||||||
getShieldsStrictReceivedStrict = strict
|
getShieldsStrictReceivedStrict = strict
|
||||||
DispatchQueue.main.async {
|
DispatchQueue.main.async {
|
||||||
|
|||||||
+1
-1
@@ -73,7 +73,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: 25.12.19
|
exactVersion: 26.1.6
|
||||||
# path: ../matrix-rust-sdk
|
# path: ../matrix-rust-sdk
|
||||||
Compound:
|
Compound:
|
||||||
path: compound-ios
|
path: compound-ios
|
||||||
|
|||||||
Reference in New Issue
Block a user