Small recently visited room tweaks following PR review

This commit is contained in:
Stefan Ceriu
2024-04-05 09:16:31 +03:00
committed by Stefan Ceriu
parent 5221e9fb5d
commit d996c69a66
8 changed files with 28 additions and 28 deletions
@@ -16,8 +16,10 @@
import Combine
import CryptoKit
import Foundation
import OrderedCollections
import MatrixRustSDK
import SwiftUI
class ClientProxy: ClientProxyProtocol {
private let client: ClientProtocol
@@ -625,7 +627,7 @@ class ClientProxy: ClientProxyProtocol {
return []
}
var users = [UserProfileProxy]()
var users: OrderedSet<UserProfileProxy> = []
for roomID in roomIdentifiers {
guard let room = await roomForIdentifier(roomID),
@@ -639,12 +641,12 @@ class ClientProxy: ClientProxyProtocol {
// Return early to avoid unnecessary work
if users.count >= maxResultsToReturn {
return users
return users.elements
}
}
}
return users
return users.elements
}
// MARK: - Private