mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-04 10:33:45 +00:00
Load member profiles through the timeline (#522)
This commit is contained in:
@@ -106,9 +106,17 @@ struct EventTimelineItemProxy: CustomDebugStringConvertible {
|
||||
|
||||
var sender: TimelineItemSender {
|
||||
let profile = item.senderProfile()
|
||||
return .init(id: item.sender(),
|
||||
displayName: profile.displayName,
|
||||
avatarURL: profile.avatarUrl.flatMap(URL.init(string:)))
|
||||
|
||||
switch profile {
|
||||
case let .ready(displayName, _, avatarUrl):
|
||||
return .init(id: item.sender(),
|
||||
displayName: displayName,
|
||||
avatarURL: avatarUrl.flatMap(URL.init(string:)))
|
||||
default:
|
||||
return .init(id: item.sender(),
|
||||
displayName: nil,
|
||||
avatarURL: nil)
|
||||
}
|
||||
}
|
||||
|
||||
var reactions: [Reaction] {
|
||||
|
||||
Reference in New Issue
Block a user