mirror of
https://github.com/mikedilger/gossip.git
synced 2024-09-29 16:31:18 +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));
|
.send(ToOverlordMessage::DeletePost(note.event.id));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if ui.button("Rerender").clicked() {
|
||||||
|
app.notes.cache_invalidate_note(¬e.event.id);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
ui.add_space(4.0);
|
ui.add_space(4.0);
|
||||||
|
|
||||||
|
@ -212,12 +212,10 @@ impl Notes {
|
|||||||
}
|
}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
|
||||||
/// Drop NoteData for a specific note
|
/// Drop NoteData for a specific note
|
||||||
pub(super) fn cache_invalidate_note(&mut self, id: &Id) {
|
pub(super) fn cache_invalidate_note(&mut self, id: &Id) {
|
||||||
self.notes.remove(id);
|
self.notes.remove(id);
|
||||||
}
|
}
|
||||||
*/
|
|
||||||
|
|
||||||
/// Drop all NoteData for a given person
|
/// Drop all NoteData for a given person
|
||||||
pub(in crate::ui) fn cache_invalidate_person(&mut self, pubkey: &PublicKeyHex) {
|
pub(in crate::ui) fn cache_invalidate_person(&mut self, pubkey: &PublicKeyHex) {
|
||||||
|
Loading…
Reference in New Issue
Block a user