Always use HTML for encrypted messages

pull/209/head
M66B 2 years ago
parent 23a24f091f
commit 88807906fa

@ -5538,7 +5538,7 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
.setTitle(message.isPlainOnly()
? R.string.title_alternative_html : R.string.title_alternative_text)
.setEnabled(message.uid != null && message.hasAlt())
.setVisible(message.accountProtocol == EntityAccount.TYPE_IMAP);
.setVisible(message.accountProtocol == EntityAccount.TYPE_IMAP && !message.isEncrypted());
popupMenu.insertIcons(context);

@ -8103,8 +8103,7 @@ public class FragmentMessages extends FragmentBase
String protect_subject = parts.getProtectedSubject();
// Write decrypted body
boolean download_plain = prefs.getBoolean("download_plain", false);
String html = parts.getHtml(context, download_plain);
String html = parts.getHtml(context, false);
Helper.writeText(message.getFile(context), html);
Log.i("pgp html=" + (html == null ? null : html.length()));
@ -8121,7 +8120,7 @@ public class FragmentMessages extends FragmentBase
db.message().setMessageContent(message.id,
true,
message.language,
parts.isPlainOnly(download_plain),
parts.isPlainOnly(false),
message.preview,
message.warning);
@ -8798,8 +8797,7 @@ public class FragmentMessages extends FragmentBase
// Write decrypted body
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context);
boolean download_plain = prefs.getBoolean("download_plain", false);
String html = parts.getHtml(context, download_plain);
String html = parts.getHtml(context, false);
Helper.writeText(message.getFile(context), html);
Log.i("s/mime html=" + (html == null ? null : html.length()));
@ -8814,7 +8812,7 @@ public class FragmentMessages extends FragmentBase
db.message().setMessageContent(message.id,
true,
message.language,
parts.isPlainOnly(download_plain),
parts.isPlainOnly(false),
message.preview,
message.warning);

Loading…
Cancel
Save