MOBILE-3213 forum: Revert part of MOBILE-3218 to link discussions
parent
7cfb0a8c9d
commit
28d9954b96
|
@ -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 => {
|
||||||
|
|
Loading…
Reference in New Issue