MOBILE-4081 forum: Fix duplicated syncs

main
Pau Ferrer Ocaña 2022-08-31 17:04:46 +02:00
parent f0b79822da
commit 128cd849b8
1 changed files with 2 additions and 0 deletions

View File

@ -126,6 +126,8 @@ export class AddonModForumSyncProvider extends CoreCourseActivitySyncBaseProvide
return; return;
} }
syncedDiscussionIds.push(reply.discussionid);
const result = force const result = force
? await this.syncDiscussionReplies(reply.discussionid, reply.userid, siteId) ? await this.syncDiscussionReplies(reply.discussionid, reply.userid, siteId)
: await this.syncDiscussionRepliesIfNeeded(reply.discussionid, reply.userid, siteId); : await this.syncDiscussionRepliesIfNeeded(reply.discussionid, reply.userid, siteId);