Merge pull request #3674 from dpalou/MOBILE-4270
MOBILE-4270 messages: Fix group info modal not displayedmain
commit
45a0c8b1fa
|
@ -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 {}
|
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue