Currently the draft was being saved in ShareView and also when the user didn't edit anything they sent a message and clicked back.
This PR fixes the above errors.
Issue(s)
How to test or reproduce
With the app closed, type some text in shareExtension, wait 3 seconds, send the message, and return to the app, the text should not appear.
With a saved draft, enter a room send the message that was saved in draft without clicking on the input component, send the message and quickly click return to leave the room, the draft must be empty.
Screenshots
Types of changes
[x] Bugfix (non-breaking change which fixes an issue)
[x] Improvement (non-breaking change which improves a current function)
[ ] New feature (non-breaking change which adds functionality)
[ ] Documentation update (if none of the other choices apply)
Proposed changes
Currently the draft was being saved in ShareView and also when the user didn't edit anything they sent a message and clicked back. This PR fixes the above errors.
Issue(s)
How to test or reproduce
Screenshots
Types of changes
Checklist
Further comments
Jira: CORE-222