MOBILE-4270 messages: Fix group info modal not displayed
parent
5eb4d17ca4
commit
48e1e41b6d
|
@ -13,10 +13,10 @@
|
||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
|
|
||||||
import { NgModule } from '@angular/core';
|
import { NgModule } from '@angular/core';
|
||||||
|
|
||||||
import { CoreSharedModule } from '@/core/shared.module';
|
import { CoreSharedModule } from '@/core/shared.module';
|
||||||
|
import { AddonMessagesConversationInfoComponent } from './conversation-info.component';
|
||||||
|
|
||||||
import { AddonMessagesConversationInfoComponent } from './conversation-info/conversation-info';
|
export { AddonMessagesConversationInfoComponent };
|
||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
declarations: [
|
declarations: [
|
||||||
|
@ -26,4 +26,4 @@ import { AddonMessagesConversationInfoComponent } from './conversation-info/conv
|
||||||
CoreSharedModule,
|
CoreSharedModule,
|
||||||
],
|
],
|
||||||
})
|
})
|
||||||
export class AddonMessagesComponentsModule {}
|
export class AddonMessagesConversationInfoComponentModule {}
|
|
@ -42,7 +42,6 @@ import { Translate } from '@singletons';
|
||||||
import { CoreNavigator } from '@services/navigator';
|
import { CoreNavigator } from '@services/navigator';
|
||||||
import { CoreIonLoadingElement } from '@classes/ion-loading';
|
import { CoreIonLoadingElement } from '@classes/ion-loading';
|
||||||
import { ActivatedRoute } from '@angular/router';
|
import { ActivatedRoute } from '@angular/router';
|
||||||
import { AddonMessagesConversationInfoComponent } from '../../components/conversation-info/conversation-info';
|
|
||||||
import { CoreConstants } from '@/core/constants';
|
import { CoreConstants } from '@/core/constants';
|
||||||
import { CoreDom } from '@singletons/dom';
|
import { CoreDom } from '@singletons/dom';
|
||||||
|
|
||||||
|
@ -1245,6 +1244,9 @@ export class AddonMessagesDiscussionPage implements OnInit, OnDestroy, AfterView
|
||||||
*/
|
*/
|
||||||
async viewInfo(): Promise<void> {
|
async viewInfo(): Promise<void> {
|
||||||
if (this.isGroup) {
|
if (this.isGroup) {
|
||||||
|
const { AddonMessagesConversationInfoComponent } =
|
||||||
|
await import('@addons/messages/components/conversation-info/conversation-info.module');
|
||||||
|
|
||||||
// Display the group information.
|
// Display the group information.
|
||||||
const userId = await CoreDomUtils.openSideModal<number>({
|
const userId = await CoreDomUtils.openSideModal<number>({
|
||||||
component: AddonMessagesConversationInfoComponent,
|
component: AddonMessagesConversationInfoComponent,
|
||||||
|
|
Loading…
Reference in New Issue