Fix issue #442 - mentions starting with a "("

This commit is contained in:
Thomas 2022-11-13 11:26:26 +01:00
parent dd4d0abf12
commit e51764ae42
1 changed files with 1 additions and 1 deletions

View File

@ -895,7 +895,7 @@ public class ComposeAdapter extends RecyclerView.Adapter<RecyclerView.ViewHolder
holder.binding.content.setAdapter(accountsListAdapter);
final String oldContent = holder.binding.content.getText().toString();
if (oldContent.length() >= currentCursorPosition) {
String[] searchA = oldContent.substring(0, currentCursorPosition).split("\\s+@|^@");
String[] searchA = oldContent.substring(0, currentCursorPosition).split("\\s+@|^@|\\(+@");
if (searchA.length > 0) {
final String search = searchA[searchA.length - 1];
holder.binding.content.setOnItemClickListener((parent, view, position, id) -> {