Update search query results when messages disappear.

Previously, if a message disappeared while looking at it in the search
results, it'd still stick around. Now they'll disappear from the results
in real-time.
This commit is contained in:
Greyson Parrelli
2018-06-15 09:20:08 -07:00
parent febf3c249e
commit 3563efc7de
4 changed files with 63 additions and 10 deletions

View File

@@ -83,7 +83,9 @@ public class SearchDatabase extends Database {
String prefixQuery = query + '*';
return db.rawQuery(MESSAGES_QUERY, new String[] { prefixQuery, prefixQuery });
Cursor cursor = db.rawQuery(MESSAGES_QUERY, new String[] { prefixQuery, prefixQuery });
setNotifyConverationListListeners(cursor);
return cursor;
}
}