From 1c910deca917be6414bdf79f8c50ea71575d9e0d Mon Sep 17 00:00:00 2001 From: Pascal Precht Date: Tue, 20 Apr 2021 18:03:58 +0200 Subject: [PATCH] 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 --- .../Chat/CommunityComponents/CommunityMembersPopup.qml | 2 +- .../CommunityComponents/CommunityProfilePopupMembersList.qml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ui/app/AppLayouts/Chat/CommunityComponents/CommunityMembersPopup.qml b/ui/app/AppLayouts/Chat/CommunityComponents/CommunityMembersPopup.qml index 1f5b950f5e..ba54187919 100644 --- a/ui/app/AppLayouts/Chat/CommunityComponents/CommunityMembersPopup.qml +++ b/ui/app/AppLayouts/Chat/CommunityComponents/CommunityMembersPopup.qml @@ -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" diff --git a/ui/app/AppLayouts/Chat/CommunityComponents/CommunityProfilePopupMembersList.qml b/ui/app/AppLayouts/Chat/CommunityComponents/CommunityProfilePopupMembersList.qml index b8c41e9be3..aa6f20bcae 100644 --- a/ui/app/AppLayouts/Chat/CommunityComponents/CommunityProfilePopupMembersList.qml +++ b/ui/app/AppLayouts/Chat/CommunityComponents/CommunityProfilePopupMembersList.qml @@ -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" */