Handling of forwarded messages in previews.
This commit is contained in:
@@ -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(
|
||||
|
||||
@@ -65,7 +65,9 @@ export default class ForwardMenu extends React.Component {
|
||||
}
|
||||
|
||||
render() {
|
||||
const contacts = this.state.query != null ? this.props.searchResults : this.props.contacts;
|
||||
let contacts = this.state.query != null ? this.props.searchResults : this.props.contacts;
|
||||
// Filter out contacts without a 'W' permission.
|
||||
contacts = contacts.filter((c) => { return c.acs.isJoiner() && c.acs.isWriter(); });
|
||||
// Ensure that menu is inside the app-container.
|
||||
const hSize = 20 * REM_SIZE;
|
||||
const vSize = REM_SIZE * (0.7 + contacts.length * 3);
|
||||
|
||||
Reference in New Issue
Block a user