Skip to content

Commit

Permalink
Fix following-status in menu and don't cache menu (IOS-229)
Browse files Browse the repository at this point in the history
  • Loading branch information
zeitschlag committed May 14, 2024
1 parent 5693853 commit c0e3866
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -710,8 +710,8 @@ extension StatusView.ViewModel {
let isTranslationEnabled = instance?.isTranslationEnabled ?? false

authorView.menuButton.menu = UIMenu(children: [
UIDeferredMenuElement({ menuElement in
UIDeferredMenuElement.uncached({ menuElement in

let domain = authContext.mastodonAuthenticationBox.domain

Task { @MainActor in
Expand All @@ -730,7 +730,7 @@ extension StatusView.ViewModel {
isBlocking: rel.blocking,
isMyself: isMyself,
isBookmarked: isBookmark,
isFollowed: rel.followedBy,
isFollowed: rel.following,
isTranslationEnabled: isTranslationEnabled,
isTranslated: translatedFromLanguage != nil,
statusLanguage: language,
Expand Down

0 comments on commit c0e3866

Please sign in to comment.