From 28d9954b96f7a51d1a99a18c148f7a53ab8541bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pau=20Ferrer=20Oca=C3=B1a?= Date: Thu, 12 Dec 2019 18:01:13 +0100 Subject: [PATCH] MOBILE-3213 forum: Revert part of MOBILE-3218 to link discussions --- src/addon/mod/forum/providers/discussion-link-handler.ts | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/addon/mod/forum/providers/discussion-link-handler.ts b/src/addon/mod/forum/providers/discussion-link-handler.ts index 67e87c4cd..e884b6545 100644 --- a/src/addon/mod/forum/providers/discussion-link-handler.ts +++ b/src/addon/mod/forum/providers/discussion-link-handler.ts @@ -45,11 +45,8 @@ export class AddonModForumDiscussionLinkHandler extends CoreContentLinksHandlerB CoreContentLinksAction[] | Promise { data = data || {}; - if (!data.instance) { - // Without the forumId discussions cannot be loaded (from link). - - return []; - } + // On 3.6 downwards, it will open the discussion but without knowing the lock status of the discussion. + // However canreply will be false. return [{ action: (siteId, navCtrl?): void => {