Bump the SDK to 25.05.21 and adopt the new way of dealing with timelines and delegates.

The room list items no longer hold any timeline instances and they can now be created through the normal `room.timelineWithConfiguration` mechanism.
This also means that we can move the UTD hook away from the sync service and into the client itself but setting it is now fallible as it can only be set once.
This commit is contained in:
Stefan Ceriu
2025-05-21 21:57:23 +03:00
committed by Stefan Ceriu
parent 849e9ee9ff
commit 2c4a8b34a7
7 changed files with 404 additions and 287 deletions

View File

@@ -49,7 +49,7 @@ final class NSEUserSession {
.sessionPassphrase(passphrase: credentials.restorationToken.passphrase)
baseClient = try await clientBuilder.build()
delegateHandle = baseClient.setDelegate(delegate: ClientDelegateWrapper())
delegateHandle = try baseClient.setDelegate(delegate: ClientDelegateWrapper())
try await baseClient.restoreSessionWith(session: credentials.restorationToken.session,
roomLoadSettings: .one(roomId: roomID))