mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 13:02:56 +00:00
fix actions and draft data object
This commit is contained in:
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user