file check of message is modified
This commit is contained in:
parent
c0bfae71e2
commit
f819b2f0a2
|
@ -296,7 +296,7 @@ export class WriteComponent implements OnInit, OnDestroy, AfterViewInit {
|
||||||
const fakeMedia = await this.commonApiService.checkInvalidMediaMimeForFileTalk(
|
const fakeMedia = await this.commonApiService.checkInvalidMediaMimeForFileTalk(
|
||||||
files
|
files
|
||||||
);
|
);
|
||||||
if (!fakeMedia.accept) {
|
if (!!fakeMedia) {
|
||||||
this.ngZone.run(() => {
|
this.ngZone.run(() => {
|
||||||
this.snackBarService.openFromComponent<
|
this.snackBarService.openFromComponent<
|
||||||
AlertSnackbarComponent,
|
AlertSnackbarComponent,
|
||||||
|
@ -309,10 +309,7 @@ export class WriteComponent implements OnInit, OnDestroy, AfterViewInit {
|
||||||
html: this.translateService.instant(
|
html: this.translateService.instant(
|
||||||
'common.file.errors.notAcceptableMime',
|
'common.file.errors.notAcceptableMime',
|
||||||
{
|
{
|
||||||
supporedType:
|
supporedType: fakeMedia.join(',')
|
||||||
fakeMedia.rejected.length > 0
|
|
||||||
? fakeMedia.rejected.join(',')
|
|
||||||
: ''
|
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user