enable save of attachments on click on single generic attachment
This commit is contained in:
parent
0addf2146a
commit
51ea762bce
|
@ -473,7 +473,16 @@ export class Message extends React.PureComponent<Props, State> {
|
||||||
</div>
|
</div>
|
||||||
) : (
|
) : (
|
||||||
<div className="module-message__generic-attachment__icon-container">
|
<div className="module-message__generic-attachment__icon-container">
|
||||||
<div className="module-message__generic-attachment__icon">
|
<div
|
||||||
|
role="button"
|
||||||
|
className="module-message__generic-attachment__icon"
|
||||||
|
onClick={(e: any) => {
|
||||||
|
if (this.props?.onDownload) {
|
||||||
|
e.stopPropagation();
|
||||||
|
this.props.onDownload(firstAttachment);
|
||||||
|
}
|
||||||
|
}}
|
||||||
|
>
|
||||||
{extension ? (
|
{extension ? (
|
||||||
<div className="module-message__generic-attachment__icon__extension">
|
<div className="module-message__generic-attachment__icon__extension">
|
||||||
{extension}
|
{extension}
|
||||||
|
|
|
@ -455,7 +455,7 @@ export class SessionCompositionBox extends React.Component<Props, State> {
|
||||||
if (!conversationModel) {
|
if (!conversationModel) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
const allPubKeys = conversationModel.get('members') as Array<string>;
|
const allPubKeys = conversationModel.get('members');
|
||||||
|
|
||||||
const allMembers = allPubKeys.map(pubKey => {
|
const allMembers = allPubKeys.map(pubKey => {
|
||||||
const conv = window.ConversationController.get(pubKey);
|
const conv = window.ConversationController.get(pubKey);
|
||||||
|
|
Loading…
Reference in New Issue