Trim text before sending it
This commit is contained in:
parent
a0511246cd
commit
6bd231098a
1 changed files with 1 additions and 1 deletions
|
@ -113,7 +113,7 @@ class ChatMessageSendingViewModel(private val chatRoom: ChatRoom) : ViewModel()
|
|||
|
||||
val toSend = textToSend.value
|
||||
if (toSend != null && toSend.isNotEmpty()) {
|
||||
message.addUtf8TextContent(toSend)
|
||||
message.addUtf8TextContent(toSend.trim())
|
||||
}
|
||||
|
||||
var fileContent = false
|
||||
|
|
Loading…
Reference in a new issue