diff --git a/src/app/services/chat/message.service.ts b/src/app/services/chat/message.service.ts index d7cc38f89..4b2ef8839 100644 --- a/src/app/services/chat/message.service.ts +++ b/src/app/services/chat/message.service.ts @@ -57,6 +57,8 @@ export class MessageService { delate = false delateRequest = false downloadLoader: boolean = false + downloadAttachments = false; + downloadAttachmentsTemp = 0; constructor(private storage: Storage, private NfService: NfService, @@ -254,7 +256,14 @@ export class MessageService { // save the changes to the storage this.save() this.downloadLoader = false; + this.downloadAttachments = true + this.downloadAttachmentsTemp++; } + }, ()=>{ + // error + this.downloadLoader = false; + this.downloadAttachments = true + this.downloadAttachmentsTemp++; }); }