MOBILE-4270 forum: Fix discussion push handler in tablet
parent
48e1e41b6d
commit
b1bf3a76f5
|
@ -61,6 +61,8 @@ export class AddonModForumPushClickHandlerService implements CorePushNotificatio
|
|||
const cmId = Number(data.cmid);
|
||||
const pageParams: Params = {
|
||||
forumId: Number(data.instance),
|
||||
cmId,
|
||||
courseId,
|
||||
};
|
||||
|
||||
if (data.postid || contextUrlParams.urlHash) {
|
||||
|
@ -68,11 +70,11 @@ export class AddonModForumPushClickHandlerService implements CorePushNotificatio
|
|||
}
|
||||
|
||||
await CoreUtils.ignoreErrors(
|
||||
AddonModForum.invalidateDiscussionPosts(pageParams.discussionId, undefined, notification.site),
|
||||
AddonModForum.invalidateDiscussionPosts(discussionId, undefined, notification.site),
|
||||
);
|
||||
|
||||
await CoreNavigator.navigateToSitePath(
|
||||
`${AddonModForumModuleHandlerService.PAGE_NAME}/${courseId}/${cmId}/${discussionId}`,
|
||||
`${AddonModForumModuleHandlerService.PAGE_NAME}/discussion/${discussionId}`,
|
||||
{ siteId: notification.site, params: pageParams },
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue