message previews work

This commit is contained in:
or-else
2021-02-03 19:04:25 -08:00
parent 4d972791af
commit 6ace7e72ab
9 changed files with 252 additions and 115 deletions
+1 -1
View File
@@ -81,7 +81,7 @@ class ContactList extends React.Component {
if (!this.props.showMode) {
const msg = c.latestMessage();
if (msg) {
deliveryStatus = c.msgStatus(msg);
deliveryStatus = msg._status || c.msgStatus(msg, true);
preview = typeof msg.content == 'string' ?
msg.content.substr(0, MESSAGE_PREVIEW_LENGTH) :
Drafty.preview(msg.content, MESSAGE_PREVIEW_LENGTH);