mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-04 01:20:12 +00:00
Rename UserProfileProxy to UserProfile. It's a pure struct and proxies nothing.
Also remove the redundant `userID` property given `id` already exists (for Identifiable conformance).
This commit is contained in:
@@ -78,7 +78,7 @@ extension BaseRoomInfoProxyProtocol {
|
||||
}
|
||||
|
||||
if isDirect, avatarURL == nil, heroes.count == 1 {
|
||||
return .heroes(heroes.map(UserProfileProxy.init))
|
||||
return .heroes(heroes.map(UserProfile.init))
|
||||
}
|
||||
|
||||
return .room(id: id, name: displayName, avatarURL: avatarURL)
|
||||
|
||||
@@ -43,7 +43,7 @@ nonisolated struct RoomSummary {
|
||||
let isSpace: Bool
|
||||
let avatarURL: URL?
|
||||
|
||||
let heroes: [UserProfileProxy]
|
||||
let heroes: [UserProfile]
|
||||
let activeMembersCount: UInt
|
||||
|
||||
let lastMessage: AttributedString?
|
||||
|
||||
@@ -354,7 +354,7 @@ class RoomSummaryProvider: RoomSummaryProviderProtocol {
|
||||
isDirect: roomInfo.isDirect,
|
||||
isSpace: roomInfo.isSpace,
|
||||
avatarURL: roomInfo.avatarUrl.flatMap(URL.init(string:)),
|
||||
heroes: roomInfo.heroes.map(UserProfileProxy.init),
|
||||
heroes: roomInfo.heroes.map(UserProfile.init),
|
||||
activeMembersCount: UInt(roomInfo.activeMembersCount),
|
||||
lastMessage: attributedLastMessage,
|
||||
lastMessageDate: lastMessageDate,
|
||||
|
||||
@@ -9,7 +9,7 @@ import Foundation
|
||||
|
||||
struct UserToInvite: Identifiable {
|
||||
/// The profile of the user being invited.
|
||||
var user: UserProfileProxy
|
||||
var user: UserProfile
|
||||
|
||||
/// The ID of the user being invited.
|
||||
var id: String {
|
||||
|
||||
Reference in New Issue
Block a user