mirror of
https://github.com/oxen-io/session-android.git
synced 2025-12-03 05:22:23 +00:00
Move add public chat button to home screen
This commit is contained in:
@@ -2766,15 +2766,13 @@ public class ConversationActivity extends PassphraseRequiredActionBarActivity
|
||||
if (isBackspace) {
|
||||
currentMentionStartIndex = -1;
|
||||
mentionCandidateSelectionView.hide();
|
||||
try {
|
||||
for (Mention mention : mentions) {
|
||||
if (!text.contains(mention.getDisplayName())) {
|
||||
mentions.remove(mention);
|
||||
}
|
||||
ArrayList<Mention> mentionsToRemove = new ArrayList<>();
|
||||
for (Mention mention : mentions) {
|
||||
if (!text.contains(mention.getDisplayName())) {
|
||||
mentionsToRemove.add(mention);
|
||||
}
|
||||
} catch (Exception exception) {
|
||||
mentions.clear(); // TODO: Dirty workaround for ConcurrentModificationException
|
||||
}
|
||||
mentions.removeAll(mentionsToRemove);
|
||||
}
|
||||
if (text.length() > 0) {
|
||||
if (currentMentionStartIndex > text.length()) {
|
||||
|
||||
Reference in New Issue
Block a user