gofractally / psibase

Open source protocol enabling communities to easily self-host web applications
https://docs.psibase.io
MIT License
26 stars 7 forks source link

Chainmail: persisting messages #855

Open cool-ant opened 1 week ago

cool-ant commented 1 week ago

The user may want to save emails--preventing them from being purged or automatically archived. This would be a separate action that commits the given message to the chain state. This could feature as a bookmark toggle on the message itself. Of course, unsave should also exist.

James' thoughts 2024.09.27 I think sent messages should be stored in/displayed from localstorage, rather than from a chain query. Because once we add message encryption, the sent messages will appear garbled since the sender can't decrypt them. And if they are shown from localstorage, then they won't actually disappear like received messages unless we introduce a localstorage clean-up policy. 10:43 And if you "save" a sent message, then it would actually re-encrypt the sent message with your own keys, so you can continue to see and read the sent message