Fix issue where note persisted after note publication

There is no changelog entry needed because drafts are still an
unreleased feature.

Changelog-None
Signed-off-by: Daniel D’Aquino <daniel@daquino.me>
Closes: https://github.com/damus-io/damus/issues/2836
This commit is contained in:
Daniel D’Aquino
2025-02-19 20:21:49 -08:00
parent a696ac5084
commit 981821a6bc

View File

@@ -230,6 +230,7 @@ struct PostView: View {
damus_state.drafts.post = nil
}
damus_state.drafts.save(damus_state: damus_state)
}
func load_draft() -> Bool {