Rename Sign Out to Remove Device + Update SDK 26.03.18 (#5280)

* update the sdk

* updated preview tests

# Conflicts:
#	ElementX/Sources/Screens/Timeline/View/Style/TimelineItemSendInfoLabel.swift
#	ElementX/Sources/Screens/Timeline/View/TimelineItemViews/LiveLocationRoomTimelineView.swift

* update sdk to 26.03.18 + regenerated preview tests after sign out copy change

* updated UI tests

* pr suggestions
This commit is contained in:
Mauro
2026-03-18 17:34:45 +01:00
committed by GitHub
parent 860a7de35e
commit dfee18e511
104 changed files with 386 additions and 426 deletions
@@ -281,6 +281,8 @@ private extension HumanQrLoginError {
.qrCodeError(.slidingSyncNotAvailable)
case .OtherDeviceNotSignedIn:
.qrCodeError(.deviceNotSignedIn)
case .UnsupportedQrCodeType:
.qrCodeError(.invalidQRCode)
case .Unknown, .OidcMetadataInvalid, .CheckCodeAlreadySent, .CheckCodeCannotBeSent:
.qrCodeError(.unknown)
}
@@ -201,6 +201,8 @@ private extension QRCodeLoginError {
.cancelled
case .OtherDeviceAlreadySignedIn:
.deviceAlreadySignedIn
case .UnsupportedQrCodeType:
.invalidQRCode
case .Unknown, .MissingSecretsBackup, .DeviceIdAlreadyInUse:
.unknown
}
@@ -62,6 +62,9 @@ struct RoomEventStringBuilder {
return prefix(errorMessage, with: displayName, isOutgoing: isOutgoing)
case .other:
return nil // We shouldn't receive these without asking for custom event types.
case .liveLocation:
// TODO: Implement
return nil
}
case .failedToParseMessageLike, .failedToParseState:
return prefix(L10n.commonUnsupportedEvent, with: displayName, isOutgoing: isOutgoing)
@@ -86,9 +89,6 @@ struct RoomEventStringBuilder {
return prefix(L10n.commonUnsupportedCall, with: displayName, isOutgoing: isOutgoing)
case .rtcNotification:
return prefix(L10n.commonCallStarted, with: displayName, isOutgoing: isOutgoing)
case .liveLocation:
// TODO: Implement
return nil
}
}
@@ -90,12 +90,11 @@ class RoomSummaryProvider: RoomSummaryProviderProtocol {
self.roomList = roomList
do {
listUpdatesSubscriptionResult = roomList.entriesWithDynamicAdaptersWith(pageSize: UInt32(roomListPageSize),
enableLatestEventSorter: true,
listener: SDKListener { [weak self] updates in
guard let self else { return }
diffsPublisher.send(updates)
})
listUpdatesSubscriptionResult = roomList.entriesWithDynamicAdapters(pageSize: UInt32(roomListPageSize),
listener: SDKListener { [weak self] updates in
guard let self else { return }
diffsPublisher.send(updates)
})
// Forces the listener above to be called with the current state
setFilter(.all(filters: []))
@@ -43,6 +43,9 @@ struct RoomTimelineItemFactory: RoomTimelineItemFactoryProtocol {
return buildEncryptedTimelineItem(eventItemProxy, messageLikeContent, encryptedMessage, isOutgoing)
case .other:
return nil // We shouldn't receive these without asking for custom event types.
case .liveLocation:
// TODO: Implement
return nil
}
case .failedToParseMessageLike(let eventType, let error):
return buildUnsupportedTimelineItem(eventItemProxy, eventType, error, isOutgoing)
@@ -69,9 +72,6 @@ struct RoomTimelineItemFactory: RoomTimelineItemFactoryProtocol {
return buildCallInviteTimelineItem(for: eventItemProxy)
case .rtcNotification:
return buildCallNotificationTimelineItem(for: eventItemProxy)
case .liveLocation:
// TODO: Implement
return nil
}
}