fix actions and draft data object

This commit is contained in:
Peter Maquiran
2024-01-17 10:25:16 +01:00
parent 69ee75b039
commit 4314ae1bff
35 changed files with 556 additions and 305 deletions
+5 -5
View File
@@ -153,7 +153,7 @@ export class MessagesPage implements OnInit, AfterViewInit, OnDestroy {
ngOnInit() {
try {
console.log(this.router.url);
// console.log(this.router.url);
this.createDirectoryImage()
// this.chatService.refreshtoken();
this.ChatSystemService.getUserOfRoom(this.roomId).then((value) => {
@@ -661,7 +661,7 @@ export class MessagesPage implements OnInit, AfterViewInit, OnDestroy {
imageBase64 = picture
});
console.log(imageBase64)
//console.log(imageBase64)
const blob = this.dataURItoBlob(imageBase64)
const formData = new FormData();
@@ -790,15 +790,15 @@ export class MessagesPage implements OnInit, AfterViewInit, OnDestroy {
imageBase64 = picture
});
console.log(imageBase64)
//console.log(imageBase64)
const response = await fetch(imageBase64);
const blob = await response.blob();
const formData = new FormData();
console.log('add file', formData)
//console.log('add file', formData)
formData.append("blobFile", blob);
console.log('add file', formData)
//console.log('add file', formData)
this.ChatSystemService.getDmRoom(roomId).send({
file: {