mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 06:55:59 +00:00
Display avatars full screen when tapping on them from the room or member detail screens
This commit is contained in:
committed by
Stefan Ceriu
parent
68f8bfed53
commit
3515494a10
@@ -65,6 +65,7 @@ struct RoomDetailsScreen: View {
|
||||
}
|
||||
}
|
||||
.track(screen: .roomDetails)
|
||||
.interactiveQuickLook(item: $context.mediaPreviewItem)
|
||||
}
|
||||
|
||||
// MARK: - Private
|
||||
@@ -76,6 +77,8 @@ struct RoomDetailsScreen: View {
|
||||
avatarSize: .room(on: .details),
|
||||
imageProvider: context.imageProvider,
|
||||
subtitle: context.viewState.canonicalAlias) {
|
||||
context.send(viewAction: .displayAvatar)
|
||||
} footer: {
|
||||
if !context.viewState.shortcuts.isEmpty {
|
||||
headerSectionShortcuts
|
||||
}
|
||||
@@ -90,6 +93,8 @@ struct RoomDetailsScreen: View {
|
||||
avatarSize: .user(on: .memberDetails),
|
||||
imageProvider: context.imageProvider,
|
||||
subtitle: recipient.id) {
|
||||
context.send(viewAction: .displayAvatar)
|
||||
} footer: {
|
||||
if !context.viewState.shortcuts.isEmpty {
|
||||
headerSectionShortcuts
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user