Fix mentions bug

This commit is contained in:
Niels Andriesse 2019-10-15 16:07:34 +11:00
parent cbad885586
commit c2d4f4b58d

View File

@ -2775,7 +2775,8 @@ public class ConversationActivity extends PassphraseRequiredActionBarActivity
} catch (Exception exception) {
mentions.clear(); // TODO: Dirty workaround for ConcurrentModificationException
}
} else if (text.length() > 0) {
}
if (text.length() > 0) {
if (currentMentionStartIndex > text.length()) {
resetMentions(); // Should never occur
}