Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/mail.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnna <anna@nextcloud.com>2022-09-12 14:58:52 +0300
committerGitHub <noreply@github.com>2022-09-12 14:58:52 +0300
commit424477ad4a005cd63e679ebed02d8239421268b1 (patch)
tree757ea70c41883cfe7be5ea7d270047a62ad63363
parentb1b1f50d2d94fb1b8649dd9a89504f3a0a13696f (diff)
parenta6639a829fc3546d3493ec091f5ed6cac8b15643 (diff)
Merge pull request #7264 from nextcloud/fix/preview-text-modifications-in-memory
Fix lost modifications of preview text
-rw-r--r--lib/Db/MessageMapper.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Db/MessageMapper.php b/lib/Db/MessageMapper.php
index 5d62e9093..b63896374 100644
--- a/lib/Db/MessageMapper.php
+++ b/lib/Db/MessageMapper.php
@@ -499,6 +499,8 @@ class MessageMapper extends QBMapper {
$previewText = null;
if ($message->getPreviewText() !== null) {
$previewText = mb_strcut(mb_convert_encoding($message->getPreviewText(), 'UTF-8', 'UTF-8'), 0, 255);
+ // Make sure modifications are visible when these objects are used right away
+ $message->setPreviewText($previewText);
}
$query->setParameter(
'preview_text',