|
|
|
@ -1102,17 +1102,7 @@ export class Message extends React.PureComponent<Props, State> {
|
|
|
|
|
const enableContextMenu = !isRss && !multiSelectMode;
|
|
|
|
|
|
|
|
|
|
return (
|
|
|
|
|
<div
|
|
|
|
|
className={classNames(divClasses)}
|
|
|
|
|
role="button"
|
|
|
|
|
onClick={() => {
|
|
|
|
|
const selection = window.getSelection();
|
|
|
|
|
if (selection && selection.type === 'Range') {
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
this.props.onSelectMessage();
|
|
|
|
|
}}
|
|
|
|
|
>
|
|
|
|
|
<div className={classNames(divClasses)}>
|
|
|
|
|
<ContextMenuTrigger id={rightClickTriggerId}>
|
|
|
|
|
{this.renderAvatar()}
|
|
|
|
|
<div
|
|
|
|
@ -1121,6 +1111,14 @@ export class Message extends React.PureComponent<Props, State> {
|
|
|
|
|
`module-message--${direction}`,
|
|
|
|
|
expiring ? 'module-message--expired' : null
|
|
|
|
|
)}
|
|
|
|
|
role="button"
|
|
|
|
|
onClick={() => {
|
|
|
|
|
const selection = window.getSelection();
|
|
|
|
|
if (selection && selection.type === 'Range') {
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
this.props.onSelectMessage();
|
|
|
|
|
}}
|
|
|
|
|
>
|
|
|
|
|
{this.renderError(isIncoming)}
|
|
|
|
|
{isRss ? null : this.renderMenu(!isIncoming, triggerId)}
|
|
|
|
|