mirror of https://github.com/M66B/FairEmail.git
Convert to plain text only on reference edit
This commit is contained in:
parent
feaea0416e
commit
6f05053374
|
@ -385,6 +385,9 @@ public interface DaoMessage {
|
|||
@Query("UPDATE message SET stored = :stored WHERE id = :id")
|
||||
int setMessageStored(long id, long stored);
|
||||
|
||||
@Query("UPDATE message SET plain_only = :plain_only WHERE id = :id")
|
||||
int setMessagePlainOnly(long id, boolean plain_only);
|
||||
|
||||
@Query("UPDATE message SET last_attempt = :last_attempt WHERE id = :id")
|
||||
int setMessageLastAttempt(long id, long last_attempt);
|
||||
|
||||
|
|
|
@ -581,11 +581,15 @@ public class FragmentCompose extends FragmentBase {
|
|||
|
||||
refFile.delete();
|
||||
|
||||
db.message().setMessagePlainOnly(draft.id, true);
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void onExecuted(Bundle args, Void data) {
|
||||
plain_only = true;
|
||||
getActivity().invalidateOptionsMenu();
|
||||
showDraft(working);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue