Handling of forwarded messages in previews.

This commit is contained in:
aforge
2021-09-28 15:40:42 +03:00
parent 4f1c9e161a
commit 4ad0baf99a
10 changed files with 343 additions and 259 deletions
+2 -2
View File
@@ -82,11 +82,11 @@ class ContactList extends React.Component {
if (!this.props.showMode && c.latestMessage) {
const msg = c.latestMessage(true);
if (msg) {
forwarded = msg.head ? msg.head.forwarded : null;
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);
forwarded = msg.head ? msg.head.forwarded : undefined;
Drafty.preview(msg.content, MESSAGE_PREVIEW_LENGTH, undefined, forwarded != null);
}
}
contactNodes.push(