Unverified Commit 6c7a7f5e authored by Filipe de Lima Brito's avatar Filipe de Lima Brito Committed by GitHub

Merge pull request #2057 from shubhsherl/I_2055

[FIX] Saving unsend message
parents 61f718a3 c6779d96
...@@ -1295,9 +1295,7 @@ class ChatRoomPresenter @Inject constructor( ...@@ -1295,9 +1295,7 @@ class ChatRoomPresenter @Inject constructor(
* @param unfinishedMessage The unfinished message to save. * @param unfinishedMessage The unfinished message to save.
*/ */
fun saveDraftMessage(unfinishedMessage: String) { fun saveDraftMessage(unfinishedMessage: String) {
if (unfinishedMessage.isNotBlank()) { localRepository.save(draftKey, unfinishedMessage)
localRepository.save(draftKey, unfinishedMessage)
}
} }
fun clearDraftMessage() { fun clearDraftMessage() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment