mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 16:10:20 +00:00
Use server name from user id function (#6082)
update sdk and use the new server from user id function from the sdk
This commit is contained in:
@@ -212,7 +212,7 @@ extension JoinedRoomProxyProtocol {
|
||||
func knownServerNames(maxCount: Int) -> any Sequence<String> {
|
||||
membersPublisher.value
|
||||
.prefix(1000) // No need to go crazy here…
|
||||
.compactMap { $0.userID.split(separator: ":").last.map(String.init) }
|
||||
.compactMap { try? serverNameFromUserId(userId: $0.userID) }
|
||||
.uniqued()
|
||||
.prefix(maxCount)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user