Mute rendering instead of ingress
Previous approach was to keep muted content from getting inserted. Instead, this version alters it's display. This makes toggling mutes on and off externally much more stable (the display changes but we don't have to rebuild content trees) For now muted content is collapsed to a red "Muted" tombstone w/ a reason.
This commit is contained in:
@@ -138,7 +138,6 @@ fn try_process_event(
|
||||
app_ctx.pool,
|
||||
app_ctx.note_cache,
|
||||
timeline,
|
||||
&app_ctx.accounts.mutefun(),
|
||||
app_ctx
|
||||
.accounts
|
||||
.get_selected_account()
|
||||
@@ -157,7 +156,6 @@ fn try_process_event(
|
||||
&txn,
|
||||
app_ctx.unknown_ids,
|
||||
app_ctx.note_cache,
|
||||
&app_ctx.accounts.mutefun(),
|
||||
) {
|
||||
error!("poll_notes_into_view: {err}");
|
||||
}
|
||||
@@ -198,7 +196,6 @@ fn update_damus(damus: &mut Damus, app_ctx: &mut AppContext<'_>, ctx: &egui::Con
|
||||
app_ctx.ndb,
|
||||
app_ctx.note_cache,
|
||||
&mut damus.decks_cache,
|
||||
&app_ctx.accounts.mutefun(),
|
||||
) {
|
||||
warn!("update_damus init: {err}");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user