MOBILE-3320 workshop: Fix offline warning never disappearing

main
Dani Palou 2021-06-16 10:02:25 +02:00
parent 7de65ddd5a
commit 3f7dfb2549
1 changed files with 4 additions and 0 deletions

View File

@ -345,6 +345,8 @@ export class AddonModWorkshopSyncProvider extends CoreSyncBaseProvider<AddonModW
attachmentsId, attachmentsId,
siteId, siteId,
); );
break;
case AddonModWorkshopAction.UPDATE: case AddonModWorkshopAction.UPDATE:
await AddonModWorkshop.updateSubmissionOnline( await AddonModWorkshop.updateSubmissionOnline(
submissionId, submissionId,
@ -353,6 +355,8 @@ export class AddonModWorkshopSyncProvider extends CoreSyncBaseProvider<AddonModW
attachmentsId, attachmentsId,
siteId, siteId,
); );
break;
case AddonModWorkshopAction.DELETE: case AddonModWorkshopAction.DELETE:
await AddonModWorkshop.deleteSubmissionOnline(submissionId, siteId); await AddonModWorkshop.deleteSubmissionOnline(submissionId, siteId);
} }