mirror of
https://github.com/Dimillian/IceCubesApp.git
synced 2025-01-12 09:05:26 +00:00
Fix status embed
This commit is contained in:
parent
b7937e3580
commit
78eee1e855
1 changed files with 14 additions and 6 deletions
|
@ -31,12 +31,20 @@ struct StatusRowContentView: View {
|
||||||
!isCompact,
|
!isCompact,
|
||||||
viewModel.isEmbedLoading || viewModel.embeddedStatus != nil
|
viewModel.isEmbedLoading || viewModel.embeddedStatus != nil
|
||||||
{
|
{
|
||||||
StatusEmbeddedView(status: viewModel.embeddedStatus ?? Status.placeholder(),
|
if let embeddedStatus = viewModel.embeddedStatus {
|
||||||
|
StatusEmbeddedView(status: embeddedStatus,
|
||||||
client: viewModel.client,
|
client: viewModel.client,
|
||||||
routerPath: viewModel.routerPath)
|
routerPath: viewModel.routerPath)
|
||||||
.fixedSize(horizontal: false, vertical: true)
|
.fixedSize(horizontal: false, vertical: true)
|
||||||
.redacted(reason: viewModel.isEmbedLoading ? .placeholder : [])
|
|
||||||
.transition(.opacity)
|
.transition(.opacity)
|
||||||
|
} else {
|
||||||
|
StatusEmbeddedView(status: Status.placeholder(),
|
||||||
|
client: viewModel.client,
|
||||||
|
routerPath: viewModel.routerPath)
|
||||||
|
.fixedSize(horizontal: false, vertical: true)
|
||||||
|
.redacted(reason: .placeholder)
|
||||||
|
.transition(.opacity)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if !viewModel.finalStatus.mediaAttachments.isEmpty {
|
if !viewModel.finalStatus.mediaAttachments.isEmpty {
|
||||||
|
|
Loading…
Reference in a new issue