change method from downloadmsg to preview

This commit is contained in:
Eudes Inácio
2022-01-28 13:25:28 +01:00
parent 35b6e490af
commit 33eddc7b73
@@ -73,8 +73,8 @@
<div>
<div *ngIf="msg.attachments" class="message-attachments">
<div *ngFor="let file of msg.attachments">
<div *ngIf="msg.file.type == 'application/img'" (click)="downloadFileMsg(msg)" dfsdvsvs>
<img src={{msg.image_url}} alt="image">
<div *ngIf="msg.file.type == 'application/img'" (click)="openPreview(msg)" dfsdvsvs>
<img src={{msg.file.image_url}} alt="image">
</div>
<div *ngIf="msg.file.type != 'application/img'">
<div class="file">