mirror of
https://github.com/oxen-io/session-android.git
synced 2025-02-17 14:08:26 +00:00
Minor cleanup
This commit is contained in:
parent
cab1ffec1e
commit
b21cdab0e4
@ -129,11 +129,10 @@ public class SearchRepository {
|
||||
}
|
||||
|
||||
executor.execute(() -> {
|
||||
// If the sanitized search query is empty or just contains a single space (" ") then abort
|
||||
// the search to prevent SQLite errors.
|
||||
String cleanQuery = sanitizeQuery(query);
|
||||
if (cleanQuery.equalsIgnoreCase(" ") || cleanQuery.isEmpty()) { return; }
|
||||
|
||||
// If the sanitized search query is empty then abort the search to prevent SQLite errors.
|
||||
String cleanQuery = sanitizeQuery(query).trim();
|
||||
if (cleanQuery.isEmpty()) { return; }
|
||||
|
||||
CursorList<MessageResult> messages = queryMessages(cleanQuery, threadId);
|
||||
callback.onResult(messages);
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user