mirror of
https://github.com/status-im/status-desktop.git
synced 2025-02-22 03:28:52 +00:00
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:
parent
b36652348a
commit
1c910deca9
@ -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"
|
||||
|
@ -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" */
|
||||
|
Loading…
x
Reference in New Issue
Block a user