fix(@chat/groups): resolve undefined chatContentModule

fixes: #7146
This commit is contained in:
Patryk Osmaczko 2022-08-25 16:46:50 +02:00 committed by osmaczko
parent e79d9dfc95
commit 037937a04f
2 changed files with 3 additions and 3 deletions

View File

@ -240,7 +240,7 @@ Item {
Component.onCompleted: {
parentModule.prepareChatContentModuleForChatId(model.itemId)
chatContentModule = parentModule.getChatContentModule()
chatSectionModule = root.chatSectionModule;
chatSectionModule = root.parentModule
}
}
}
@ -297,7 +297,7 @@ Item {
Component.onCompleted: {
parentModule.prepareChatContentModuleForChatId(model.itemId)
chatContentModule = parentModule.getChatContentModule()
chatSectionModule = root.chatSectionModule;
chatSectionModule = root.parentModule
root.checkForCreateChatOptions(model.itemId)
}
}

View File

@ -160,7 +160,7 @@ ColumnLayout {
Component {
id: contactsSelector
GroupChatPanel {
sectionModule: chatSectionModule
sectionModule: root.chatSectionModule
chatContentModule: root.chatContentModule
rootStore: root.rootStore
maxHeight: root.height