Fix CW layout issues (IOS-207)

This commit is contained in:
Marcus Kida 2023-12-08 14:29:01 +01:00
parent d1ba457a2f
commit b0bdaac8b4
No known key found for this signature in database
GPG Key ID: 19FF64E08013CA40
1 changed files with 6 additions and 2 deletions

View File

@ -150,8 +150,12 @@ extension StatusView {
if let inReplyToID = status.entity.inReplyToID {
// A. replyTo status exist
/// we need to initially set an empty header, otherwise the layout gets messed up
viewModel.header = createHeader(name: "", emojis: [:])
/// finally we can load the status information and display the correct header
if let authenticationBox = viewModel.authContext?.mastodonAuthenticationBox {
Task {
Task { @MainActor in
if let replyTo = try? await Mastodon.API.Statuses.status(
session: .shared,
domain: authenticationBox.domain,
@ -198,7 +202,7 @@ extension StatusView {
}
public func configureAuthor(author: Mastodon.Entity.Account) {
Task {
Task { @MainActor in
// author avatar
viewModel.authorAvatarImageURL = author.avatarImageURL()