Skip to content
Snippets Groups Projects
Verified Commit ffa73a2d authored by Janne Mareike Koschinski's avatar Janne Mareike Koschinski
Browse files

Fixes another autocomplete issue

- Sender autocomplete into an empty message prepended a space
parent f03591ff
No related branches found
No related tags found
No related merge requests found
Pipeline #
......@@ -331,7 +331,7 @@ class RichEditText : EditTextSelectionChange {
fun appendText(text: CharSequence?, suffix: String?) {
val shouldAddSuffix = this.text.isEmpty()
if (!this.text.endsWith(" "))
if (this.text.isNotEmpty() && !this.text.endsWith(" "))
this.text.append(" ")
this.text.append(text)
if (shouldAddSuffix)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment