MOBILE-4270 messages: Fix group info modal not displayed

main
Dani Palou 2023-05-11 14:06:16 +02:00
parent 5eb4d17ca4
commit 48e1e41b6d
3 changed files with 6 additions and 4 deletions

View File

@ -13,10 +13,10 @@
// limitations under the License.
import { NgModule } from '@angular/core';
import { CoreSharedModule } from '@/core/shared.module';
import { AddonMessagesConversationInfoComponent } from './conversation-info.component';
import { AddonMessagesConversationInfoComponent } from './conversation-info/conversation-info';
export { AddonMessagesConversationInfoComponent };
@NgModule({
declarations: [
@ -26,4 +26,4 @@ import { AddonMessagesConversationInfoComponent } from './conversation-info/conv
CoreSharedModule,
],
})
export class AddonMessagesComponentsModule {}
export class AddonMessagesConversationInfoComponentModule {}

View File

@ -42,7 +42,6 @@ import { Translate } from '@singletons';
import { CoreNavigator } from '@services/navigator';
import { CoreIonLoadingElement } from '@classes/ion-loading';
import { ActivatedRoute } from '@angular/router';
import { AddonMessagesConversationInfoComponent } from '../../components/conversation-info/conversation-info';
import { CoreConstants } from '@/core/constants';
import { CoreDom } from '@singletons/dom';
@ -1245,6 +1244,9 @@ export class AddonMessagesDiscussionPage implements OnInit, OnDestroy, AfterView
*/
async viewInfo(): Promise<void> {
if (this.isGroup) {
const { AddonMessagesConversationInfoComponent } =
await import('@addons/messages/components/conversation-info/conversation-info.module');
// Display the group information.
const userId = await CoreDomUtils.openSideModal<number>({
component: AddonMessagesConversationInfoComponent,