MOBILE-2915 forum: Fix discussion sync

This commit is contained in:
Dani Palou 2019-03-27 18:03:36 +01:00
parent 5c4fcaf09e
commit 8b5b33ec82

View File

@ -357,7 +357,7 @@ export class AddonModForumDiscussionPage implements OnDestroy {
protected syncDiscussion(showErrors: boolean): Promise<any> {
const promises = [];
promises.push(this.forumSync.syncDiscussionReplies(this.forumId, this.discussionId).then((result) => {
promises.push(this.forumSync.syncDiscussionReplies(this.discussionId).then((result) => {
if (result.warnings && result.warnings.length) {
this.domUtils.showErrorModal(result.warnings[0]);
}