bug fix in chat view

This commit is contained in:
tiago.kayaya
2022-01-28 15:31:52 +01:00
parent 8756462665
commit 5a214aebf4
12 changed files with 145 additions and 49 deletions
+8 -8
View File
@@ -114,7 +114,7 @@ export class MessagesPage implements OnInit, AfterViewInit, OnDestroy {
this.wsChatMethodsService.getDmRoom(this.roomId).loadHistory()
this.wsChatMethodsService.getDmRoom(this.roomId).scrollDown = this.scrollToBottomClicked
setTimeout(()=>{
this.scrollToBottomClicked()
}, 50)
@@ -245,7 +245,7 @@ export class MessagesPage implements OnInit, AfterViewInit, OnDestroy {
"asUser": false,
}
if (msgId) {
this.alertService.confirmDeleteMessage(body);
//this.alertService.confirmDeleteMessage(body);
}
else {
this.toastService.badRequest('Não foi possível apagar');
@@ -576,11 +576,11 @@ export class MessagesPage implements OnInit, AfterViewInit, OnDestroy {
});
}
/*
/*
this.fileService.downloadFile(element.file.guid).subscribe(async (event) => {
var name = element.file.guid;
if (event.type === HttpEventType.DownloadProgress) {
} else if (event.type === HttpEventType.Response) {
var base64 = btoa(new Uint8Array(event.body).reduce((data, byte) => data + String.fromCharCode(byte), '')
);
@@ -600,14 +600,14 @@ export class MessagesPage implements OnInit, AfterViewInit, OnDestroy {
console.log('error LAKE FS FILE', error)
});
const readFile = await Filesystem.readFile({
path: `${IMAGE_DIR}/${name}`,
directory: Directory.Data,
});
});
});*/
getRoomMessageDB(roomId) {