Bump the Rust SDK to v26.01.06 (#4933)

This commit is contained in:
Skye Elliot
2026-01-08 10:40:00 +00:00
committed by GitHub
parent 8e0ccd0015
commit 00dc901ce1
6 changed files with 16 additions and 12 deletions
@@ -15,6 +15,8 @@ struct EventTimelineItemSDKMockConfiguration {
var eventID: String = UUID().uuidString
var sender = ""
var senderProfile: ProfileDetails?
var forwarder: String?
var forwarderProfile: ProfileDetails?
var isOwn = false
var content: TimelineItemContent = .msgLike(content: .init(kind: .redacted,
reactions: [],
@@ -29,6 +31,8 @@ extension EventTimelineItem {
eventOrTransactionId: .eventId(eventId: configuration.eventID),
sender: configuration.sender,
senderProfile: configuration.senderProfile ?? .pending,
forwarder: configuration.forwarder,
forwarderProfile: configuration.forwarderProfile,
isOwn: configuration.isOwn,
isEditable: false,
content: configuration.content,
@@ -68,16 +68,16 @@ enum EncryptionAuthenticity: Hashable {
extension EncryptionAuthenticity {
init?(shieldState: ShieldState) {
switch shieldState {
case .red(let code, _):
case .red(let code):
self.init(shieldStateCode: code, color: .red)
case .grey(let code, _):
case .grey(let code):
self.init(shieldStateCode: code, color: .gray)
case .none:
return nil
}
}
init(shieldStateCode: ShieldStateCode, color: EncryptionAuthenticity.Color) {
init(shieldStateCode: TimelineEventShieldStateCode, color: EncryptionAuthenticity.Color) {
switch shieldStateCode {
case .authenticityNotGuaranteed:
self = .notGuaranteed(color: color)