Fixed formatting of inline encrypted messages

pull/177/head
M66B 5 years ago
parent 7f49de2a83
commit 25a1df8350

@ -4965,7 +4965,9 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences.
db.beginTransaction();
// Write decrypted body
Helper.copy(plain, message.getFile(context));
String text = Helper.readText(plain);
String html = HtmlHelper.formatPre(text);
Helper.writeText(message.getFile(context), html);
db.message().setMessageStored(message.id, new Date().getTime());
db.message().setMessageFts(message.id, false);

Loading…
Cancel
Save