mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 16:10:20 +00:00
added a feature flag for share pos + updated the SDK (#4312)
This commit is contained in:
@@ -110,7 +110,7 @@ class JoinedRoomProxy: JoinedRoomProxyProtocol {
|
||||
subscribedForUpdates = true
|
||||
|
||||
do {
|
||||
try roomListService.subscribeToRooms(roomIds: [id])
|
||||
try await roomListService.subscribeToRooms(roomIds: [id])
|
||||
} catch {
|
||||
MXLog.error("Failed subscribing to room with error: \(error)")
|
||||
}
|
||||
@@ -173,7 +173,7 @@ class JoinedRoomProxy: JoinedRoomProxyProtocol {
|
||||
|
||||
func threadTimeline(eventID: String) async -> Result<TimelineProxyProtocol, RoomProxyError> {
|
||||
do {
|
||||
let sdkTimeline = try await room.timelineWithConfiguration(configuration: .init(focus: .thread(rootEventId: eventID, numEvents: 20),
|
||||
let sdkTimeline = try await room.timelineWithConfiguration(configuration: .init(focus: .thread(rootEventId: eventID),
|
||||
filter: .all,
|
||||
internalIdPrefix: UUID().uuidString,
|
||||
dateDividerMode: .daily,
|
||||
@@ -197,7 +197,7 @@ class JoinedRoomProxy: JoinedRoomProxyProtocol {
|
||||
let rustFocus: MatrixRustSDK.TimelineFocus = switch focus {
|
||||
case .live: .live(hideThreadedEvents: false)
|
||||
case .eventID(let eventID): .event(eventId: eventID, numContextEvents: 100, hideThreadedEvents: false)
|
||||
case .thread(let eventID): .thread(rootEventId: eventID, numEvents: 20)
|
||||
case .thread(let eventID): .thread(rootEventId: eventID)
|
||||
case .pinned: .pinnedEvents(maxEventsToLoad: 100, maxConcurrentRequests: 10)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user