Silent doesn't save

pull/217/head
M66B 7 months ago
parent 887fb047df
commit a49ea25fdc

@ -7268,8 +7268,11 @@ public class FragmentCompose extends FragmentBase {
!EntityAttachment.equals(last_attachments, attachments)) !EntityAttachment.equals(last_attachments, attachments))
dirty = true; dirty = true;
last_plain_only = draft.plain_only; if (!silent) {
last_attachments = attachments; // Not saved on server
last_plain_only = draft.plain_only;
last_attachments = attachments;
}
if (dirty) { if (dirty) {
// Update draft // Update draft
@ -7812,10 +7815,8 @@ public class FragmentCompose extends FragmentBase {
if (args.getBoolean("large")) if (args.getBoolean("large"))
ToastEx.makeText(getContext(), R.string.title_large_body, Toast.LENGTH_LONG).show(); ToastEx.makeText(getContext(), R.string.title_large_body, Toast.LENGTH_LONG).show();
if (args.getBundle("extras").getBoolean("silent")) { if (args.getBundle("extras").getBoolean("silent"))
etBody.setTag(null);
return; return;
}
boolean needsEncryption = args.getBoolean("needsEncryption"); boolean needsEncryption = args.getBoolean("needsEncryption");
int action = args.getInt("action"); int action = args.getInt("action");

Loading…
Cancel
Save