mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-04 10:33:45 +00:00
Add the UserStatus and a status field on UserProfile/RoomMember/TimelineItemSender.
This commit is contained in:
@@ -16,12 +16,18 @@ nonisolated struct TimelineItemSender: Identifiable, Hashable {
|
||||
let displayName: String?
|
||||
let isDisplayNameAmbiguous: Bool
|
||||
let avatarURL: URL?
|
||||
let status: UserStatus
|
||||
|
||||
init(id: String, displayName: String? = nil, isDisplayNameAmbiguous: Bool = false, avatarURL: URL? = nil) {
|
||||
init(id: String,
|
||||
displayName: String? = nil,
|
||||
isDisplayNameAmbiguous: Bool = false,
|
||||
avatarURL: URL? = nil,
|
||||
status: UserStatus = .init()) {
|
||||
self.id = id
|
||||
self.displayName = displayName
|
||||
self.isDisplayNameAmbiguous = isDisplayNameAmbiguous
|
||||
self.avatarURL = avatarURL
|
||||
self.status = status
|
||||
}
|
||||
|
||||
init(senderID: String, senderProfile: ProfileDetails) {
|
||||
|
||||
Reference in New Issue
Block a user