Fix search showing received mention messages as note to self.

This commit is contained in:
Clark
2023-07-24 13:04:10 -04:00
committed by Greyson Parrelli
parent 9d33690f34
commit d78e73bd6f
3 changed files with 17 additions and 8 deletions

View File

@@ -367,7 +367,7 @@ public class SearchRepository {
CharSequence updatedBody = MentionUtil.updateBodyAndMentionsWithDisplayNames(context, body, mentions).getBody();
CharSequence updatedSnippet = makeSnippet(cleanQueries, Objects.requireNonNull(updatedBody));
results.add(new MessageResult(record.getToRecipient(), record.getFromRecipient(), updatedBody, updatedSnippet, record.getThreadId(), record.getId(), record.getDateReceived(), true));
results.add(new MessageResult(record.getFromRecipient(), record.getToRecipient(), updatedBody, updatedSnippet, record.getThreadId(), record.getId(), record.getDateReceived(), true));
}
}
}