mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-04 01:20:12 +00:00
Add retry decryption encrypted timeline item debug menu option (#384)
* Fixed a couple of warnings (+2 squashed commits) Squashed commits: [21fbc3b0] Add changelog [abb092c6] Add retry decryption encrypted timeline item debug menu option * Cleanup room list state computations * Bump the RustSDK to v1.0.25-alpha * Fix brew CI errors: remove imagemagick and brew lock file entirely * Fix release script version bumping * Bump ruby dependencies
This commit is contained in:
@@ -42,4 +42,6 @@ struct MockRoomTimelineProvider: RoomTimelineProviderProtocol {
|
||||
func redact(_ eventID: String) async -> Result<Void, RoomTimelineProviderError> {
|
||||
.failure(.failedRedactingItem)
|
||||
}
|
||||
|
||||
func retryDecryption(forSessionId sessionId: String) async { }
|
||||
}
|
||||
|
||||
@@ -139,6 +139,10 @@ class RoomTimelineProvider: RoomTimelineProviderProtocol {
|
||||
}
|
||||
}
|
||||
|
||||
func retryDecryption(forSessionId sessionId: String) async {
|
||||
await roomProxy.retryDecryption(forSessionId: sessionId)
|
||||
}
|
||||
|
||||
// MARK: - Private
|
||||
|
||||
private func updateItemsWithDiffs(_ diffs: [TimelineDiff]) {
|
||||
|
||||
@@ -40,6 +40,8 @@ protocol RoomTimelineProviderProtocol {
|
||||
func editMessage(_ newMessage: String, originalItemId: String) async -> Result<Void, RoomTimelineProviderError>
|
||||
|
||||
func redact(_ eventID: String) async -> Result<Void, RoomTimelineProviderError>
|
||||
|
||||
func retryDecryption(forSessionId sessionId: String) async
|
||||
}
|
||||
|
||||
extension RoomTimelineProviderProtocol {
|
||||
|
||||
@@ -87,4 +87,6 @@ class MockRoomTimelineController: RoomTimelineControllerProtocol {
|
||||
func debugDescriptionFor(_ itemId: String) -> String {
|
||||
"Mock debug description"
|
||||
}
|
||||
|
||||
func retryDecryption(forSessionId sessionId: String) async { }
|
||||
}
|
||||
|
||||
@@ -204,6 +204,10 @@ class RoomTimelineController: RoomTimelineControllerProtocol {
|
||||
|
||||
return description
|
||||
}
|
||||
|
||||
func retryDecryption(forSessionId sessionId: String) async {
|
||||
await timelineProvider.retryDecryption(forSessionId: sessionId)
|
||||
}
|
||||
|
||||
// MARK: - Private
|
||||
|
||||
|
||||
+2
@@ -61,4 +61,6 @@ protocol RoomTimelineControllerProtocol {
|
||||
func redact(_ eventID: String) async
|
||||
|
||||
func debugDescriptionFor(_ itemId: String) -> String
|
||||
|
||||
func retryDecryption(forSessionId sessionId: String) async
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user