status: add settings for disabling statuses in the UI
Suggested-by: Tanel Changelog-Added: Add settings for disabling user statuses
This commit is contained in:
@@ -68,7 +68,7 @@ struct EventShell<Content: View>: View {
|
||||
VStack(alignment: .leading) {
|
||||
EventTop(state: state, event: event, pubkey: pubkey, is_anon: is_anon)
|
||||
|
||||
UserStatusView(status: state.profiles.profile_data(pubkey).status)
|
||||
UserStatusView(status: state.profiles.profile_data(pubkey).status, show_general: state.settings.show_general_statuses, show_music: state.settings.show_music_statuses)
|
||||
|
||||
if !options.contains(.no_replying_to) {
|
||||
ReplyPart(events: state.events, event: event, privkey: state.keypair.privkey, profiles: state.profiles)
|
||||
@@ -97,7 +97,7 @@ struct EventShell<Content: View>: View {
|
||||
|
||||
VStack(alignment: .leading, spacing: 2) {
|
||||
EventTop(state: state, event: event, pubkey: pubkey, is_anon: is_anon)
|
||||
UserStatusView(status: state.profiles.profile_data(pubkey).status)
|
||||
UserStatusView(status: state.profiles.profile_data(pubkey).status, show_general: state.settings.show_general_statuses, show_music: state.settings.show_music_statuses)
|
||||
ReplyPart(events: state.events, event: event, privkey: state.keypair.privkey, profiles: state.profiles)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user