Merge pull request #238 from KeeJef/dev

Add a Space After Inserting a Mention
This commit is contained in:
Niels Andriesse 2020-06-23 14:26:24 +10:00 committed by GitHub
commit d9dfca4d07
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -438,7 +438,7 @@ public class ConversationActivity extends PassphraseRequiredActionBarActivity
mentionCandidateSelectionView.setOnMentionCandidateSelected( mentionCandidate -> {
mentions.add(mentionCandidate);
String oldText = composeText.getText().toString();
String newText = oldText.substring(0, currentMentionStartIndex) + "@" + mentionCandidate.getDisplayName();
String newText = oldText.substring(0, currentMentionStartIndex) + "@" + mentionCandidate.getDisplayName() + " ";
composeText.setText(newText);
composeText.setSelection(newText.length());
currentMentionStartIndex = -1;