Index notes

pull/209/head
M66B 2 years ago
parent b401607315
commit 1ddff2764f

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

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

Loading…
Cancel
Save