Skip confirm images/html globally

pull/204/head
M66B 3 years ago
parent 78c9b8449f
commit c6c8708bb3

@ -4073,7 +4073,8 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
boolean current = properties.getValue(full ? "full" : "images", message.id); boolean current = properties.getValue(full ? "full" : "images", message.id);
boolean asked = properties.getValue(full ? "full_asked" : "images_asked", message.id); boolean asked = properties.getValue(full ? "full_asked" : "images_asked", message.id);
if (current || asked) { boolean confirm = prefs.getBoolean(full ? "confirm_html" : "confirm_images", true);
if (current || asked || !confirm) {
if (current && message.from != null) { if (current && message.from != null) {
SharedPreferences.Editor editor = prefs.edit(); SharedPreferences.Editor editor = prefs.edit();
for (Address sender : message.from) { for (Address sender : message.from) {
@ -4090,7 +4091,6 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
properties.setValue(full ? "full" : "images", message.id, !current); properties.setValue(full ? "full" : "images", message.id, !current);
onShowConfirmed(message, full, !current); onShowConfirmed(message, full, !current);
return; return;
} }

Loading…
Cancel
Save