mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-02 12:07:55 +00:00
Bump the Rust SDK to v26.01.06 (#4933)
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user