Issue Description:
Text entered in the chat input box is not cleared if the user types a message, shares an attachment, navigates to the home screen, and then returns to the chat.
Steps to Reproduce:
1.Open any chat.
2.Type some text in the message input box.
3.Share an attachment.
4.Navigate to the Home screen.
5.Return to the same chat.
Expected Result:
The text input field should be cleared when returning to the chat screen.
Actual Result:
The previously typed text remains in the input box instead of being cleared.