This commit is contained in:
Peter Maquiran
2022-09-28 21:05:28 +01:00
parent aa72837f66
commit 4c8e522d40
4 changed files with 43 additions and 10 deletions
+4 -7
View File
@@ -463,12 +463,6 @@ export class MessagesPage implements OnInit, AfterViewInit, OnDestroy {
}
}
/* playSound(url?:any){
alert('here')
//this.audioDownloaded = this.sanitiser.bypassSecurityTrustResourceUrl(url);
this.audioDownloaded = url;
} */
docIndex(index: number) {
this.dicIndex = index
@@ -626,6 +620,8 @@ export class MessagesPage implements OnInit, AfterViewInit, OnDestroy {
async takePicture() {
alert("!");
const roomId = this.roomId
const image = await this.CameraService.takePicture();
@@ -633,12 +629,13 @@ export class MessagesPage implements OnInit, AfterViewInit, OnDestroy {
const lastphoto: any = await this.fileService.loadFiles();
const { capturedImage, capturedImageTitle } = await this.fileService.loadFileData(lastphoto);
alert('!!');
const base64 = await fetch(capturedImage);
const blob = await base64.blob();
const formData = new FormData();
formData.append("blobFile", blob);
console.log(capturedImage);
this.wsChatMethodsService.getDmRoom(roomId).send({
file: {