MOBILE-3213 forum: Revert part of MOBILE-3218 to link discussions

main
Pau Ferrer Ocaña 2019-12-12 18:01:13 +01:00
parent 7cfb0a8c9d
commit 28d9954b96
1 changed files with 2 additions and 5 deletions

View File

@ -45,11 +45,8 @@ export class AddonModForumDiscussionLinkHandler extends CoreContentLinksHandlerB
CoreContentLinksAction[] | Promise<CoreContentLinksAction[]> { CoreContentLinksAction[] | Promise<CoreContentLinksAction[]> {
data = data || {}; data = data || {};
if (!data.instance) { // On 3.6 downwards, it will open the discussion but without knowing the lock status of the discussion.
// Without the forumId discussions cannot be loaded (from link). // However canreply will be false.
return [];
}
return [{ return [{
action: (siteId, navCtrl?): void => { action: (siteId, navCtrl?): void => {