mirror of https://github.com/M66B/FairEmail.git
Fixed showing inline images in original messages
This commit is contained in:
parent
8f3eed41e3
commit
4a3e2e7e6f
|
@ -1370,7 +1370,7 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
|
||||||
try {
|
try {
|
||||||
String src = img.attr("src");
|
String src = img.attr("src");
|
||||||
if (src.startsWith("cid:")) {
|
if (src.startsWith("cid:")) {
|
||||||
String cid = src.substring(4);
|
String cid = '<' + src.substring(4) + '>';
|
||||||
EntityAttachment attachment = DB.getInstance(context).attachment().getAttachment(id, cid);
|
EntityAttachment attachment = DB.getInstance(context).attachment().getAttachment(id, cid);
|
||||||
if (attachment != null && attachment.available) {
|
if (attachment != null && attachment.available) {
|
||||||
InputStream is = null;
|
InputStream is = null;
|
||||||
|
|
Loading…
Reference in New Issue