mirror of
https://github.com/Dimillian/IceCubesApp.git
synced 2025-01-08 23:35:25 +00:00
Support server side auto expand spoiler
This commit is contained in:
parent
2961793e87
commit
39dc6dadc7
1 changed files with 4 additions and 0 deletions
|
@ -7,6 +7,7 @@ import Shimmer
|
|||
|
||||
public struct StatusRowView: View {
|
||||
@Environment(\.redactionReasons) private var reasons
|
||||
@EnvironmentObject private var preferences: UserPreferences
|
||||
@EnvironmentObject private var account: CurrentAccount
|
||||
@EnvironmentObject private var theme: Theme
|
||||
@EnvironmentObject private var client: Client
|
||||
|
@ -60,6 +61,9 @@ public struct StatusRowView: View {
|
|||
await viewModel.loadEmbededStatus()
|
||||
}
|
||||
}
|
||||
if preferences.serverPreferences?.autoExpandSpoilers == true {
|
||||
viewModel.displaySpoiler = false
|
||||
}
|
||||
}
|
||||
.contextMenu {
|
||||
StatusRowContextMenu(viewModel: viewModel)
|
||||
|
|
Loading…
Reference in a new issue