mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-05 20:09:04 +00:00
sdk bump to 1.0.60
This commit is contained in:
@@ -111,8 +111,8 @@
|
|||||||
"kind" : "remoteSourceControl",
|
"kind" : "remoteSourceControl",
|
||||||
"location" : "https://github.com/matrix-org/matrix-rust-components-swift",
|
"location" : "https://github.com/matrix-org/matrix-rust-components-swift",
|
||||||
"state" : {
|
"state" : {
|
||||||
"revision" : "15c314fcb20e3b009b573a50edc4736a73e63c96",
|
"revision" : "6c11b548074f4bfedfe73a9724d7d8d1709b0ede",
|
||||||
"version" : "1.0.59-alpha"
|
"version" : "1.0.60-alpha"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -362,12 +362,10 @@ class ClientProxy: ClientProxyProtocol {
|
|||||||
fatalError("This shouldn't be called more than once")
|
fatalError("This shouldn't be called more than once")
|
||||||
}
|
}
|
||||||
|
|
||||||
do {
|
let visibleRoomsSlidingSyncView = SlidingSyncListBuilder(name: "CurrentlyVisibleRooms")
|
||||||
let visibleRoomsSlidingSyncView = try SlidingSyncListBuilder()
|
|
||||||
.timelineLimit(limit: UInt32(SlidingSyncConstants.initialTimelineLimit)) // Starts off with zero to quickly load rooms, then goes to 1 while scrolling to quickly load last messages and 20 when the scrolling stops to load room history
|
.timelineLimit(limit: UInt32(SlidingSyncConstants.initialTimelineLimit)) // Starts off with zero to quickly load rooms, then goes to 1 while scrolling to quickly load last messages and 20 when the scrolling stops to load room history
|
||||||
.requiredState(requiredState: slidingSyncRequiredState)
|
.requiredState(requiredState: slidingSyncRequiredState)
|
||||||
.filters(filters: slidingSyncFilters)
|
.filters(filters: slidingSyncFilters)
|
||||||
.name(name: "CurrentlyVisibleRooms")
|
|
||||||
.syncMode(mode: .selective)
|
.syncMode(mode: .selective)
|
||||||
.addRange(from: 0, to: 20)
|
.addRange(from: 0, to: 20)
|
||||||
.build()
|
.build()
|
||||||
@@ -393,9 +391,6 @@ class ClientProxy: ClientProxyProtocol {
|
|||||||
self?.configureViewsPostInitialSync()
|
self?.configureViewsPostInitialSync()
|
||||||
self?.visibleRoomsViewProxyStateObservationToken = nil
|
self?.visibleRoomsViewProxyStateObservationToken = nil
|
||||||
}
|
}
|
||||||
} catch {
|
|
||||||
MXLog.error("Failed building the visible rooms sliding sync view with error: \(error)")
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private func buildAndConfigureAllRoomsSlidingSyncView() {
|
private func buildAndConfigureAllRoomsSlidingSyncView() {
|
||||||
@@ -403,22 +398,16 @@ class ClientProxy: ClientProxyProtocol {
|
|||||||
fatalError("This shouldn't be called more than once")
|
fatalError("This shouldn't be called more than once")
|
||||||
}
|
}
|
||||||
|
|
||||||
do {
|
let allRoomsSlidingSyncView = SlidingSyncListBuilder(name: "AllRooms")
|
||||||
let allRoomsSlidingSyncView = try SlidingSyncListBuilder()
|
|
||||||
.noTimelineLimit()
|
.noTimelineLimit()
|
||||||
.requiredState(requiredState: slidingSyncRequiredState)
|
.requiredState(requiredState: slidingSyncRequiredState)
|
||||||
.filters(filters: slidingSyncFilters)
|
.filters(filters: slidingSyncFilters)
|
||||||
.name(name: "AllRooms")
|
|
||||||
.syncMode(mode: .growing)
|
.syncMode(mode: .growing)
|
||||||
.batchSize(batchSize: 100)
|
.batchSize(batchSize: 100)
|
||||||
.build()
|
.build()
|
||||||
|
|
||||||
self.allRoomsSlidingSyncView = allRoomsSlidingSyncView
|
self.allRoomsSlidingSyncView = allRoomsSlidingSyncView
|
||||||
allRoomsViewProxy = SlidingSyncViewProxy(slidingSyncView: allRoomsSlidingSyncView, name: "All rooms")
|
allRoomsViewProxy = SlidingSyncViewProxy(slidingSyncView: allRoomsSlidingSyncView, name: "All rooms")
|
||||||
|
|
||||||
} catch {
|
|
||||||
MXLog.error("Failed building the all rooms sliding sync view with error: \(error)")
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private func buildAndConfigureInvitesSlidingSyncView() {
|
private func buildAndConfigureInvitesSlidingSyncView() {
|
||||||
@@ -426,21 +415,16 @@ class ClientProxy: ClientProxyProtocol {
|
|||||||
fatalError("This shouldn't be called more than once")
|
fatalError("This shouldn't be called more than once")
|
||||||
}
|
}
|
||||||
|
|
||||||
do {
|
let invitesView = SlidingSyncListBuilder(name: "Invites")
|
||||||
let invitesView = try SlidingSyncListBuilder()
|
|
||||||
.noTimelineLimit()
|
.noTimelineLimit()
|
||||||
.requiredState(requiredState: slidingSyncInvitesRequiredState)
|
.requiredState(requiredState: slidingSyncInvitesRequiredState)
|
||||||
.filters(filters: slidingSyncInviteFilters)
|
.filters(filters: slidingSyncInviteFilters)
|
||||||
.name(name: "Invites")
|
|
||||||
.syncMode(mode: .growing)
|
.syncMode(mode: .growing)
|
||||||
.batchSize(batchSize: 100)
|
.batchSize(batchSize: 100)
|
||||||
.build()
|
.build()
|
||||||
|
|
||||||
invitesSlidingSyncView = invitesView
|
invitesSlidingSyncView = invitesView
|
||||||
invitesViewProxy = SlidingSyncViewProxy(slidingSyncView: invitesView, name: "Invites")
|
invitesViewProxy = SlidingSyncViewProxy(slidingSyncView: invitesView, name: "Invites")
|
||||||
} catch {
|
|
||||||
MXLog.error("Failed building the invites sliding sync view with error: \(error)")
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private func buildAndConfigureNotificationSyncView() {
|
private func buildAndConfigureNotificationSyncView() {
|
||||||
@@ -448,20 +432,15 @@ class ClientProxy: ClientProxyProtocol {
|
|||||||
fatalError("This shouldn't be called more than once")
|
fatalError("This shouldn't be called more than once")
|
||||||
}
|
}
|
||||||
|
|
||||||
do {
|
let notificationsSlidingSyncView = SlidingSyncListBuilder(name: "Notifications")
|
||||||
let notificationsSlidingSyncView = try SlidingSyncListBuilder()
|
|
||||||
.noTimelineLimit()
|
.noTimelineLimit()
|
||||||
.requiredState(requiredState: slidingSyncNotificationsRequiredState)
|
.requiredState(requiredState: slidingSyncNotificationsRequiredState)
|
||||||
.filters(filters: slidingSyncNotificationsFilters)
|
.filters(filters: slidingSyncNotificationsFilters)
|
||||||
.name(name: "Notifications")
|
|
||||||
.syncMode(mode: .growing)
|
.syncMode(mode: .growing)
|
||||||
.batchSize(batchSize: 100)
|
.batchSize(batchSize: 100)
|
||||||
.build()
|
.build()
|
||||||
|
|
||||||
self.notificationsSlidingSyncView = notificationsSlidingSyncView
|
self.notificationsSlidingSyncView = notificationsSlidingSyncView
|
||||||
} catch {
|
|
||||||
MXLog.error("Failed building the notification sliding sync view with error: \(error)")
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private func buildRoomSummaryProviders() {
|
private func buildRoomSummaryProviders() {
|
||||||
|
|||||||
@@ -146,4 +146,8 @@ private class MockMediaLoadingClient: ClientProtocol {
|
|||||||
func searchUsers(searchTerm: String, limit: UInt64) throws -> MatrixRustSDK.SearchUsersResults { fatalError() }
|
func searchUsers(searchTerm: String, limit: UInt64) throws -> MatrixRustSDK.SearchUsersResults { fatalError() }
|
||||||
|
|
||||||
func setNotificationDelegate(notificationDelegate: MatrixRustSDK.NotificationDelegate?) { }
|
func setNotificationDelegate(notificationDelegate: MatrixRustSDK.NotificationDelegate?) { }
|
||||||
|
|
||||||
|
func getNotificationItem(roomId: String, eventId: String) throws -> MatrixRustSDK.NotificationItem {
|
||||||
|
fatalError()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -42,7 +42,7 @@ include:
|
|||||||
packages:
|
packages:
|
||||||
MatrixRustSDK:
|
MatrixRustSDK:
|
||||||
url: https://github.com/matrix-org/matrix-rust-components-swift
|
url: https://github.com/matrix-org/matrix-rust-components-swift
|
||||||
exactVersion: 1.0.59-alpha
|
exactVersion: 1.0.60-alpha
|
||||||
# path: ../matrix-rust-sdk
|
# path: ../matrix-rust-sdk
|
||||||
DesignKit:
|
DesignKit:
|
||||||
path: DesignKit
|
path: DesignKit
|
||||||
|
|||||||
Reference in New Issue
Block a user