diff --git a/src/addons/mod/forum/services/forum-sync.ts b/src/addons/mod/forum/services/forum-sync.ts index f08542f5b..7b943afc5 100644 --- a/src/addons/mod/forum/services/forum-sync.ts +++ b/src/addons/mod/forum/services/forum-sync.ts @@ -126,6 +126,8 @@ export class AddonModForumSyncProvider extends CoreCourseActivitySyncBaseProvide return; } + syncedDiscussionIds.push(reply.discussionid); + const result = force ? await this.syncDiscussionReplies(reply.discussionid, reply.userid, siteId) : await this.syncDiscussionRepliesIfNeeded(reply.discussionid, reply.userid, siteId);