mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-04 10:33:45 +00:00
Sliding sync v2 (#775)
* Adopt latest rust Sliding Sync changes * Bump SDK, converge on similar to configure both sliding sync lists * Adopt latest SDK version, fix breaking changes * Fix unit tests
This commit is contained in:
@@ -42,10 +42,6 @@ struct MessageTimelineItem<Content: MessageContentProtocol> {
|
||||
item.content().asMessage()?.isEdited() == true
|
||||
}
|
||||
|
||||
var inReplyTo: String? {
|
||||
item.content().asMessage()?.inReplyTo()
|
||||
}
|
||||
|
||||
var sender: String {
|
||||
item.sender()
|
||||
}
|
||||
|
||||
@@ -116,7 +116,19 @@ struct EventTimelineItemProxy: CustomDebugStringConvertible {
|
||||
// MARK: - CustomDebugStringConvertible
|
||||
|
||||
var debugDescription: String {
|
||||
item.fmtDebug()
|
||||
let debugInfo = item.debugInfo()
|
||||
|
||||
var debugDescription = debugInfo.model
|
||||
|
||||
if let originalJson = debugInfo.originalJson {
|
||||
debugDescription += "\n\n\(originalJson)"
|
||||
}
|
||||
|
||||
if let latestEditJson = debugInfo.latestEditJson {
|
||||
debugDescription += "\n\n\(latestEditJson)"
|
||||
}
|
||||
|
||||
return debugDescription
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user