Merge pull request #3674 from dpalou/MOBILE-4270

MOBILE-4270 messages: Fix group info modal not displayed
main
Noel De Martin 2023-05-11 14:18:06 +02:00 committed by GitHub
commit 45a0c8b1fa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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,