mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-02 21:33:26 +00:00
Update the SDK and handle the API breaks.
This commit is contained in:
@@ -16,7 +16,7 @@ struct NotificationItemProxyMockConfiguration {
|
||||
let messageLikeContent = MessageLikeEventContent.roomMessage(messageType: messageType, inReplyToEventId: nil)
|
||||
let event = TimelineEventSDKMock()
|
||||
event.eventIdUnderlyingReturnValue = UUID().uuidString
|
||||
event.eventTypeReturnValue = TimelineEventType.messageLike(content: messageLikeContent)
|
||||
event.contentReturnValue = .messageLike(content: messageLikeContent)
|
||||
return .timeline(event: event)
|
||||
}()
|
||||
|
||||
|
||||
@@ -172,7 +172,7 @@ class ClientProxy: ClientProxyProtocol {
|
||||
|
||||
secureBackupController = SecureBackupController(encryption: client.encryption())
|
||||
|
||||
spaceService = SpaceServiceProxy(spaceService: client.spaceService())
|
||||
spaceService = await SpaceServiceProxy(spaceService: client.spaceService())
|
||||
|
||||
let configuredAppService = try await ClientProxyServices(client: client,
|
||||
actionsSubject: actionsSubject,
|
||||
|
||||
@@ -26,7 +26,7 @@ class SpaceServiceProxy: SpaceServiceProxyProtocol {
|
||||
}
|
||||
|
||||
private func setupSubscriptions() async {
|
||||
joinedSpacesHandle = await spaceService.subscribeToJoinedSpaces(listener: SDKListener { [weak self] updates in
|
||||
joinedSpacesHandle = await spaceService.subscribeToTopLevelJoinedSpaces(listener: SDKListener { [weak self] updates in
|
||||
self?.handleUpdates(updates)
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user