mirror of https://github.com/M66B/FairEmail.git
Update preview after sending message
This commit is contained in:
parent
6acb4d946f
commit
ec43286096
|
@ -397,7 +397,13 @@ public class ServiceSend extends ServiceBase {
|
||||||
// Update message with signature / referenced text for sent orphans
|
// Update message with signature / referenced text for sent orphans
|
||||||
MessageHelper helper = new MessageHelper(imessage);
|
MessageHelper helper = new MessageHelper(imessage);
|
||||||
MessageHelper.MessageParts parts = helper.getMessageParts();
|
MessageHelper.MessageParts parts = helper.getMessageParts();
|
||||||
Helper.writeText(message.getFile(this), parts.getHtml(this));
|
String body = parts.getHtml(this);
|
||||||
|
Helper.writeText(message.getFile(this), body);
|
||||||
|
db.message().setMessageContent(message.id,
|
||||||
|
true,
|
||||||
|
parts.isPlainOnly(),
|
||||||
|
HtmlHelper.getPreview(body),
|
||||||
|
parts.getWarnings(message.warning));
|
||||||
|
|
||||||
db.identity().setIdentityConnected(ident.id, new Date().getTime());
|
db.identity().setIdentityConnected(ident.id, new Date().getTime());
|
||||||
db.identity().setIdentityError(ident.id, null);
|
db.identity().setIdentityError(ident.id, null);
|
||||||
|
|
Loading…
Reference in New Issue