1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2025-01-31 11:31:40 +00:00

Index notes

This commit is contained in:
M66B 2022-09-29 13:35:53 +02:00
parent b401607315
commit 1ddff2764f
2 changed files with 6 additions and 1 deletions

View file

@ -8312,6 +8312,11 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
return null;
}
@Override
protected void onExecuted(Bundle args, Void data) {
WorkerFts.init(context, false);
}
@Override
protected void onException(Bundle args, Throwable ex) {
Log.unexpectedError(getParentFragmentManager(), ex);

View file

@ -835,7 +835,7 @@ public interface DaoMessage {
int setMessageContent(long id, boolean content, String language, Integer plain_only, String preview, String warning);
@Query("UPDATE message" +
" SET notes = :notes, notes_color = :color" +
" SET notes = :notes, notes_color = :color, fts = 0" +
" WHERE id = :id" +
" AND NOT (notes IS :notes AND notes_color IS :color)")
int setMessageNotes(long id, String notes, Integer color);