Browse code

BM-14600 Fix: es mail preview

David Phan authored on 10/04/2019 13:25:47
Showing 1 changed files
... ...
@@ -136,7 +136,7 @@ public class IndexedMessageBody {
136 136
 		content.addAll(bodyData.filenames);
137 137
 		content.addAll(bodyData.with);
138 138
 
139
-		String preview = bodyData.text.substring(0, Math.min(160, bodyData.text.length())).trim();
139
+		String preview = bodyData.body.preview;
140 140
 
141 141
 		Map<String, Object> data = new HashMap<>();
142 142
 		data.put("preview", preview);