Persist TMF draft messages to localStorage
There are two types of draft messages in TMF:
- from the chat input box
- from the edit text area that opens when the user edits a message
Both of these drafts disappear when the user refreshes the page or opens different thread.
We want to persist them in the local storage the same way as the main message feed chat input box does it.
Related discussion: https://gitlab.com/gitlab-org/gitter/webapp/merge_requests/1676#note_255495790
Edited by Tomas Vik (OOO back on 2024-05-09)