Private chat draft not saved when clearing input and then pasting value
Steps to reproduce the bug:
On either desktop or android (didn't test iOS but imagine it happens there too):
- Go to private conversation
- Type some text
- Clear the text (whether using keyboard shortcut or context menu option e.g. "cut" or "select all" + clear)
- Paste some text
- Leave conversation screen
- Re-enter conversation screen
- Notice no draft loaded with text from step 4
Expected behavior:
Step 7 should have restored the text from step 4
Actual behavior:
The text from step 4 is not loaded into the input
Technical details
Easy to diagnose that this is some combination of state + input component issues. See https://gitlab.com/staltz/manyverse/-/blob/dc23a4c64a80754b9ec8125ce59b9483a0a97147/src/frontend/screens/conversation/asyncstorage.ts#L32 for relevant place to see issue.
I could tell that a draft was not being saved after step 4 by watching the localstorage for desktop.
- Manyverse app version: 0.2211.1-beta
- Device: Pixel 6
- OS version: Android 13
Edited by Andrew Chou