mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 06:55:59 +00:00
Update the SDK and enable event permalinks. (#2748)
This commit is contained in:
@@ -160,14 +160,13 @@ class RoomProxy: RoomProxyProtocol {
|
||||
}
|
||||
|
||||
func timelineFocusedOnEvent(eventID: String, numberOfEvents: UInt16) async -> Result<TimelineProxyProtocol, RoomProxyError> {
|
||||
.failure(.sdkError(RoomProxyMockError.generic))
|
||||
// do {
|
||||
// let timeline = try await room.timelineFocusedOnEvent(eventId: eventID, numContextEvents: numberOfEvents, internalIdPrefix: UUID().uuidString)
|
||||
// return .success(TimelineProxy(timeline: timeline, isLive: false))
|
||||
// } catch {
|
||||
// MXLog.error("Failed to create a timeline focussed on: \(eventID) with error: \(error)")
|
||||
// return .failure(.sdkError(error))
|
||||
// }
|
||||
do {
|
||||
let timeline = try await room.timelineFocusedOnEvent(eventId: eventID, numContextEvents: numberOfEvents, internalIdPrefix: UUID().uuidString)
|
||||
return .success(TimelineProxy(timeline: timeline, isLive: false))
|
||||
} catch {
|
||||
MXLog.error("Failed to create a timeline focussed on: \(eventID) with error: \(error)")
|
||||
return .failure(.sdkError(error))
|
||||
}
|
||||
}
|
||||
|
||||
func redact(_ eventID: String) async -> Result<Void, RoomProxyError> {
|
||||
|
||||
Reference in New Issue
Block a user