Skip to content

Commit

Permalink
fix(ContactsColumnView): Open add/remove group member on context menu
Browse files Browse the repository at this point in the history
  • Loading branch information
igor-sirotin committed Jan 19, 2023
1 parent 6bd0dca commit 7f67c88
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
6 changes: 5 additions & 1 deletion ui/app/AppLayouts/Chat/views/ChatHeaderContentView.qml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ Item {

signal searchButtonClicked()

function addRemoveGroupMember() {
root.state = d.stateMembersSelectorContent
}

QtObject {
id: d

Expand Down Expand Up @@ -231,7 +235,7 @@ Item {
)
}
onAddRemoveGroupMember: {
root.state = d.stateMembersSelectorContent
root.addRemoveGroupMember()
}
onFetchMoreMessages: {
messageStore.requestMoreMessages();
Expand Down
3 changes: 3 additions & 0 deletions ui/app/AppLayouts/Chat/views/ChatView.qml
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,9 @@ StatusSectionLayout {
onCreateCommunityClicked: {
root.createCommunityClicked();
}
onAddRemoveGroupMemberClicked: {
headerContent.addRemoveGroupMember()
}
}
}

Expand Down
4 changes: 4 additions & 0 deletions ui/app/AppLayouts/Chat/views/ContactsColumnView.qml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ Item {
signal openAppSearch()
signal importCommunityClicked()
signal createCommunityClicked()
signal addRemoveGroupMemberClicked()

// main layout
ColumnLayout {
Expand Down Expand Up @@ -233,6 +234,9 @@ Item {
groupImage
)
}
onAddRemoveGroupMember: {
root.addRemoveGroupMemberClicked()
}
}
}
}
Expand Down

0 comments on commit 7f67c88

Please # to comment.