Update preview after sending message

This commit is contained in:
M66B 2019-08-20 15:38:35 +02:00
parent 6acb4d946f
commit ec43286096
1 changed files with 7 additions and 1 deletions

View File

@ -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);