mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-02 21:33:26 +00:00
Adopt batched timeline diffs and other RustSDK changes
This commit is contained in:
committed by
Stefan Ceriu
parent
ebb7436927
commit
28c2490910
@@ -27,7 +27,7 @@ struct InvitesScreenCell: View {
|
||||
|
||||
var body: some View {
|
||||
HStack(alignment: .top, spacing: 16) {
|
||||
LoadableAvatarImage(url: mainAvatarURL,
|
||||
LoadableAvatarImage(url: invite.roomDetails.avatarURL,
|
||||
name: title,
|
||||
contentID: invite.roomDetails.id,
|
||||
avatarSize: .custom(52),
|
||||
@@ -119,12 +119,7 @@ struct InvitesScreenCell: View {
|
||||
.fill(Color.compound.borderDisabled)
|
||||
.frame(height: 1 / UIScreen.main.scale)
|
||||
}
|
||||
|
||||
#warning("Return just `roomDetails.avatarURL` when this logic is implemented in the rust sdk")
|
||||
private var mainAvatarURL: URL? {
|
||||
invite.isDirect ? invite.inviter?.avatarURL : invite.roomDetails.avatarURL
|
||||
}
|
||||
|
||||
|
||||
private var title: String {
|
||||
invite.roomDetails.name
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user