mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-02 21:33:26 +00:00
Adopt new timeline item debug info and overhaul the timeline item deb… (#781)
* Adopt new timeline item debug info and overhaul the timeline item debug menu
This commit is contained in:
@@ -181,21 +181,19 @@ class RoomTimelineController: RoomTimelineControllerProtocol {
|
||||
|
||||
// Handle this parallel to the timeline items so we're not forced
|
||||
// to bundle the Rust side objects within them
|
||||
func debugDescription(for itemID: String) -> String {
|
||||
var description = "Unknown item"
|
||||
timelineProvider.itemsPublisher.value.forEach { timelineItemProxy in
|
||||
func debugInfo(for itemID: String) -> TimelineItemDebugInfo {
|
||||
for timelineItemProxy in timelineProvider.itemsPublisher.value {
|
||||
switch timelineItemProxy {
|
||||
case .event(let item):
|
||||
if item.id == itemID {
|
||||
description = item.debugDescription
|
||||
return
|
||||
return item.debugInfo
|
||||
}
|
||||
default:
|
||||
break
|
||||
continue
|
||||
}
|
||||
}
|
||||
|
||||
return description
|
||||
return .init(model: "Unknown item", originalJSON: nil, latestEditJSON: nil)
|
||||
}
|
||||
|
||||
func retryDecryption(for sessionID: String) async {
|
||||
|
||||
Reference in New Issue
Block a user