mirror of
https://github.com/mikedilger/gossip.git
synced 2024-09-29 08:21:47 +00:00
Force re-render of a note
This commit is contained in:
parent
b95cfa88ad
commit
f10616cd7d
@ -373,6 +373,9 @@ fn render_note_inner(
|
||||
.send(ToOverlordMessage::DeletePost(note.event.id));
|
||||
}
|
||||
}
|
||||
if ui.button("Rerender").clicked() {
|
||||
app.notes.cache_invalidate_note(¬e.event.id);
|
||||
}
|
||||
});
|
||||
ui.add_space(4.0);
|
||||
|
||||
|
@ -212,12 +212,10 @@ impl Notes {
|
||||
}
|
||||
*/
|
||||
|
||||
/*
|
||||
/// Drop NoteData for a specific note
|
||||
pub(super) fn cache_invalidate_note(&mut self, id: &Id) {
|
||||
self.notes.remove(id);
|
||||
}
|
||||
*/
|
||||
|
||||
/// Drop all NoteData for a given person
|
||||
pub(in crate::ui) fn cache_invalidate_person(&mut self, pubkey: &PublicKeyHex) {
|
||||
|
Loading…
Reference in New Issue
Block a user