Fix bug with processing and displaying long messages with mentions.

This commit is contained in:
Cody Henthorne
2021-08-06 13:19:44 -04:00
committed by GitHub
parent fc51c4940c
commit 570b4d7150
5 changed files with 18 additions and 21 deletions

View File

@@ -77,7 +77,7 @@ public final class MentionUtil {
for (Mention mention : sortedMentions) {
if (invalidMention(body, mention)) {
return new UpdatedBodyAndMentions(body, Collections.emptyList());
continue;
}
updatedBody.append(body.subSequence(bodyIndex, mention.getStart()));