mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-18 20:47:54 +00:00
fix
This commit is contained in:
@@ -222,7 +222,6 @@ export class MessageService {
|
||||
|
||||
if (event.type === HttpEventType.DownloadProgress) {
|
||||
|
||||
console.log('FILE TYPE 33', this.file.type)
|
||||
} else if (event.type === HttpEventType.Response) {
|
||||
if (this.file.type == "application/img") {
|
||||
downloadFile = 'data:image/jpeg;base64,' + btoa(new Uint8Array(event.body).reduce((data, byte) => data + String.fromCharCode(byte), ''));
|
||||
@@ -242,7 +241,6 @@ export class MessageService {
|
||||
ts: this.attachments[0].ts
|
||||
}
|
||||
|
||||
console.log(this.attachments)
|
||||
// save the changes to the storage
|
||||
this.save()
|
||||
}
|
||||
@@ -262,7 +260,6 @@ export class MessageService {
|
||||
|
||||
async delateDB() {
|
||||
|
||||
// alert('delete data')
|
||||
const message = await MessageModel.get({_id: this._id})
|
||||
await message.delete()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user