Convert to plain text only on reference edit

This commit is contained in:
M66B 2019-05-06 07:37:02 +02:00
parent feaea0416e
commit 6f05053374
2 changed files with 7 additions and 0 deletions

View File

@ -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);

View File

@ -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);
}