commit
626ca8d0fa
|
@ -61,6 +61,8 @@ export class AddonModForumPushClickHandlerService implements CorePushNotificatio
|
||||||
const cmId = Number(data.cmid);
|
const cmId = Number(data.cmid);
|
||||||
const pageParams: Params = {
|
const pageParams: Params = {
|
||||||
forumId: Number(data.instance),
|
forumId: Number(data.instance),
|
||||||
|
cmId,
|
||||||
|
courseId,
|
||||||
};
|
};
|
||||||
|
|
||||||
if (data.postid || contextUrlParams.urlHash) {
|
if (data.postid || contextUrlParams.urlHash) {
|
||||||
|
@ -68,11 +70,11 @@ export class AddonModForumPushClickHandlerService implements CorePushNotificatio
|
||||||
}
|
}
|
||||||
|
|
||||||
await CoreUtils.ignoreErrors(
|
await CoreUtils.ignoreErrors(
|
||||||
AddonModForum.invalidateDiscussionPosts(pageParams.discussionId, undefined, notification.site),
|
AddonModForum.invalidateDiscussionPosts(discussionId, undefined, notification.site),
|
||||||
);
|
);
|
||||||
|
|
||||||
await CoreNavigator.navigateToSitePath(
|
await CoreNavigator.navigateToSitePath(
|
||||||
`${AddonModForumModuleHandlerService.PAGE_NAME}/${courseId}/${cmId}/${discussionId}`,
|
`${AddonModForumModuleHandlerService.PAGE_NAME}/discussion/${discussionId}`,
|
||||||
{ siteId: notification.site, params: pageParams },
|
{ siteId: notification.site, params: pageParams },
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
@ -23,7 +23,7 @@
|
||||||
"emailconfirmsentnoemail": "<p>An email should have been sent to your address.</p><p>It contains easy instructions to complete your registration.</p>",
|
"emailconfirmsentnoemail": "<p>An email should have been sent to your address.</p><p>It contains easy instructions to complete your registration.</p>",
|
||||||
"emailconfirmsentsuccess": "Confirmation email sent successfully",
|
"emailconfirmsentsuccess": "Confirmation email sent successfully",
|
||||||
"emailnotmatch": "Emails do not match",
|
"emailnotmatch": "Emails do not match",
|
||||||
"erroraccesscontrolalloworigin": "The cross-origin call you're trying to perform has been rejected. Please check https://docs.moodle.org/dev/Moodle_Mobile_development_using_Chrome_or_Chromium",
|
"erroraccesscontrolalloworigin": "The cross-origin call you're trying to perform has been rejected. Please check https://moodledev.io/general/app/development/setup/app-in-browser",
|
||||||
"errordeletesite": "An error occurred while deleting this account. Please try again.",
|
"errordeletesite": "An error occurred while deleting this account. Please try again.",
|
||||||
"errorexampleurl": "The URL https://campus.example.edu is only an example URL, it's not a real site. <strong>Please use the URL of your school or organization's site.</strong>",
|
"errorexampleurl": "The URL https://campus.example.edu is only an example URL, it's not a real site. <strong>Please use the URL of your school or organization's site.</strong>",
|
||||||
"errorqrnoscheme": "This URL isn't a valid login URL.",
|
"errorqrnoscheme": "This URL isn't a valid login URL.",
|
||||||
|
|
Loading…
Reference in New Issue