mirror of https://github.com/M66B/FairEmail.git
Small improvement
This commit is contained in:
parent
7582384d6e
commit
ac3f655637
|
@ -315,11 +315,11 @@ public class Helper {
|
||||||
draft.msgid = EntityMessage.generateMessageId();
|
draft.msgid = EntityMessage.generateMessageId();
|
||||||
draft.to = new Address[]{Helper.myAddress()};
|
draft.to = new Address[]{Helper.myAddress()};
|
||||||
draft.subject = context.getString(R.string.app_name) + " " + BuildConfig.VERSION_NAME + " debug info";
|
draft.subject = context.getString(R.string.app_name) + " " + BuildConfig.VERSION_NAME + " debug info";
|
||||||
draft.content = true;
|
|
||||||
draft.received = new Date().getTime();
|
draft.received = new Date().getTime();
|
||||||
draft.setContactInfo(context);
|
draft.setContactInfo(context);
|
||||||
draft.id = db.message().insertMessage(draft);
|
draft.id = db.message().insertMessage(draft);
|
||||||
draft.write(context, body);
|
draft.write(context, body);
|
||||||
|
db.message().setMessageContent(draft.id, true, HtmlHelper.getPreview(body));
|
||||||
|
|
||||||
attachSettings(context, draft.id, 1);
|
attachSettings(context, draft.id, 1);
|
||||||
attachNetworkInfo(context, draft.id, 2);
|
attachNetworkInfo(context, draft.id, 2);
|
||||||
|
|
Loading…
Reference in New Issue