Skip to content
This repository has been archived by the owner on Jun 7, 2020. It is now read-only.

Fix the issue of message box not being cleared after sending the message #2146

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

ubarsaiyan
Copy link
Contributor

@RocketChat/android

Closes #2145

@@ -352,6 +352,7 @@ class ChatRoomPresenter @Inject constructor(
RoomUiModel(roles = chatRoles, isBroadcast = chatIsBroadcast)
), false
)
view.clearMessageComposition(true)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Doing that, if something went wrong when calling the client.sendMessage(...) will cause the users lost their messages, needing it to be written again.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But the unsent message will still be displayed (greyed out) so the user won't lose the message. Am I wrong?

@philipbrito philipbrito added this to the 3.5.0 milestone May 21, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] Message box not being cleared for some time after sending a message
2 participants