fix(Communities): make creating channels work again

Very similar to #1986, we're trying to access the `activeCommunity`
property on the `chatsModel` object, which doesn't have such a property
anymore every since we've moved communities into its own view.
This causes errors when trying to create channels.

This commit fixes this bug by ensuring `activeCommunity` is accessed
from `chatsModel.communities` instead.
This commit is contained in:
Pascal Precht 2021-03-05 11:54:18 +01:00 committed by Iuri Matias
parent 86ea7014f6
commit aa7fb862f2
1 changed files with 1 additions and 1 deletions

View File

@ -71,7 +71,7 @@ Item {
icon.source: "../../img/hash.svg"
icon.width: 20
icon.height: 20
onTriggered: openPopup(createChannelPopup, {communityId: chatsModel.activeCommunity.id})
onTriggered: openPopup(createChannelPopup, {communityId: chatsModel.communities.activeCommunity.id})
}
Action {