fix(Communities): make kicking members work again

There's a regression in the application where kicking members from communities
doesn't work anymore. This was due to UI logic being moved to a different model
without updating the corresponding view action.

Fixes #2274
This commit is contained in:
Pascal Precht 2021-04-20 18:03:58 +02:00 committed by Iuri Matias
parent b36652348a
commit 1c910deca9
2 changed files with 2 additions and 2 deletions

View File

@ -164,7 +164,7 @@ ModalPopup {
icon.color: Style.current.red
//% "Kick"
text: qsTrId("kick")
onTriggered: chatsModel.removeUserFromCommunity(model.pubKey)
onTriggered: chatsModel.communities.removeUserFromCommunity(model.pubKey)
}
Action {
icon.source: "../../../img/communities/menu/ban.svg"

View File

@ -155,7 +155,7 @@ Item {
icon.color: Style.current.red
//% "Kick"
text: qsTrId("kick")
onTriggered: chatsModel.removeUserFromCommunity(model.pubKey)
onTriggered: chatsModel.communities.removeUserFromCommunity(model.pubKey)
}
/* Action { */
/* icon.source: "../../../img/communities/menu/ban.svg" */