diff --git a/src/addon/messages/providers/index-link-handler.ts b/src/addon/messages/providers/index-link-handler.ts index 5b162b772..974c6ddef 100644 --- a/src/addon/messages/providers/index-link-handler.ts +++ b/src/addon/messages/providers/index-link-handler.ts @@ -44,8 +44,13 @@ export class AddonMessagesIndexLinkHandler extends CoreContentLinksHandlerBase { CoreContentLinksAction[] | Promise { return [{ action: (siteId, navCtrl?): void => { + let pageName = 'AddonMessagesIndexPage'; + if (this.messagesProvider.isGroupMessagingEnabled()) { + pageName = 'AddonMessagesGroupConversationsPage'; + } + // Always use redirect to make it the new history root (to avoid "loops" in history). - this.linkHelper.goInSite(navCtrl, 'AddonMessagesIndexPage', undefined, siteId); + this.linkHelper.goInSite(navCtrl, pageName, undefined, siteId); } }]; }