fix(CreateChatView): enable mentioning people selected in create chat

Fixes #8749

I couldn't fully test it because it needs #8991 to be fixed to see if the message is sent correctly
This commit is contained in:
Jonathan Rainville 2023-01-09 14:57:53 -05:00
parent 321496c807
commit 5e8f3e6565
2 changed files with 8 additions and 5 deletions

View File

@ -67,10 +67,10 @@ Item {
Layout.alignment: Qt.AlignVCenter
icon.name: "public-chat"
icon.color: Theme.palette.directColor1
icon.height: editBtn.icon.height
icon.width: editBtn.icon.width
implicitWidth: editBtn.implicitWidth
implicitHeight: editBtn.implicitHeight
icon.height: startChatButton.icon.height
icon.width: startChatButton.icon.width
implicitWidth: startChatButton.implicitWidth
implicitHeight: startChatButton.implicitHeight
type: StatusRoundButton.Type.Tertiary
onClicked: Global.openPopup(publicChatPopupComponent)
@ -84,7 +84,7 @@ Item {
}
StatusIconTabButton {
id: editBtn
id: startChatButton
Layout.alignment: Qt.AlignVCenter
objectName: "startChatButton"
icon.name: "edit"

View File

@ -156,6 +156,9 @@ Page {
emojiPopup: root.emojiPopup
stickersPopup: root.stickersPopup
closeGifPopupAfterSelection: true
usersStore: ({
usersModel: membersSelector.model
})
onSendTransactionCommandButtonClicked: {
root.rootStore.createChatStartSendTransactionProcess = true;
membersSelector.createChat();