fix(Communities): make leaving communities work again

Turns out in https://github.com/status-im/status-desktop/commit/81bb7fcc6 we've introduced a regression where
leaving a communities isn't possible anymore because we're trying
to call an API that doesn't exist on the `chatsModel`.

This commit fixes it by ensuring the API is called from `chatsModel.communities`.
This commit is contained in:
Pascal Precht 2021-03-05 10:01:29 +01:00 committed by Iuri Matias
parent 131685ecf5
commit 43e4ba771b
1 changed files with 1 additions and 1 deletions

View File

@ -81,7 +81,7 @@ Item {
icon.color: Style.current.red
icon.width: 20
icon.height: 20
onTriggered: chatsModel.leaveCurrentCommunity()
onTriggered: chatsModel.communities.leaveCurrentCommunity()
}
onAboutToHide: {