diff options
Diffstat (limited to 'lib/Db/MessageMapper.php')
-rw-r--r-- | lib/Db/MessageMapper.php | 2 |
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', |