Inline language recognition

This commit is contained in:
M66B
2020-03-26 15:25:44 +01:00
parent cb3629b880
commit 1c437a52f5
11 changed files with 62 additions and 52 deletions

View File

@@ -411,8 +411,9 @@ public class ServiceSend extends ServiceBase {
Helper.writeText(file, body);
db.message().setMessageContent(message.id,
true,
HtmlHelper.getLanguage(this, body),
parts.isPlainOnly(),
HtmlHelper.getPreview(file),
HtmlHelper.getPreview(body),
parts.getWarnings(message.warning));
EntityAttachment.copy(this, id, message.id);