Skip to content

Commit

Permalink
fix: search in Instant View
Browse files Browse the repository at this point in the history
  • Loading branch information
omg-xtao committed May 22, 2024
1 parent 373d123 commit f582d1d
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4052,6 +4052,9 @@ private void processSearch(final String text) {
if (object instanceof TLRPC.RichText) {
TLRPC.RichText richText = (TLRPC.RichText) object;
CharSequence innerText = getText(adapter[0], null, richText, richText, block, 1000);
if (!TextUtils.isEmpty(innerText)) {
textToSearchIn = innerText.toString().toLowerCase();
}
} else if (object instanceof String) {
textToSearchIn = ((String) object).toLowerCase();
}
Expand Down

0 comments on commit f582d1d

Please sign in to comment.