mute: updating UI to support new mute list

This patch depends on: Adding filtering support for MuteItem events

- Gives more specific mute reason in EventMutedBoxView
- Showing all types of mutes in MutelistView
- Allowing for adding mutes directly from MutelistView
- Allowing for choosing duration of mute in EventMenu

Related: https://github.com/damus-io/damus/issues/1718
Related: https://github.com/damus-io/damus/issues/856
Lighting Address: fishcharlie@strike.me

Signed-off-by: Charlie Fish <contact@charlie.fish>
Reviewed-by: William Casarin <jb55@jb55.com>
Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
Charlie Fish
2024-01-17 18:17:41 -07:00
committed by William Casarin
parent 61a9e44898
commit 75d66434f3
9 changed files with 141 additions and 73 deletions

View File

@@ -70,9 +70,9 @@ struct ThreadView: View {
EventMutingContainerView(
damus_state: state,
event: self.thread.event,
muteBox: { event_shown in
muteBox: { event_shown, muted_reason in
AnyView(
EventMutedBoxView(shown: event_shown)
EventMutedBoxView(shown: event_shown, reason: muted_reason)
.padding(5)
)
}