fix(Chat): Add emoji popup to edit message input

Closes: #5527
This commit is contained in:
Boris Melnik 2022-04-13 12:59:16 +03:00
parent 3b43c44989
commit cf221eb06e
4 changed files with 10 additions and 0 deletions

View File

@ -387,6 +387,7 @@ ColumnLayout {
contactsStore: chatContentRoot.contactsStore
messageContextMenuInst: contextmenu
messageStore: messageStore
emojiPopup: chatContentRoot.emojiPopup
usersStore: chatContentRoot.usersStore
stickersLoaded: chatContentRoot.stickersLoaded
isChatBlocked: chatContentRoot.isBlocked

View File

@ -27,6 +27,8 @@ Item {
property var contactsStore
property string channelEmoji
property var emojiPopup
property bool stickersLoaded: false
property alias chatLogView: chatLogView
property bool isChatBlocked: false
@ -246,6 +248,7 @@ Item {
usersStore: root.usersStore
contactsStore: root.contactsStore
channelEmoji: root.channelEmoji
emojiPopup: root.emojiPopup
isChatBlocked: root.isChatBlocked
messageContextMenu: messageContextMenuInst

View File

@ -21,6 +21,8 @@ Item {
property var usersStore
property var contactsStore
property var emojiPopup
property var messageContextMenu
property var container
property int contentType
@ -443,6 +445,7 @@ Item {
chatInputPlaceholder: qsTrId("type-a-message-")
chatType: messageStore.getChatType()
isEdit: true
emojiPopup: root.emojiPopup
textInput.text: editMessageLoader.sourceText
messageContextMenu: root.messageContextMenu
onSendMessage: {

View File

@ -24,6 +24,8 @@ Column {
property var messageContextMenu
property string channelEmoji
property var emojiPopup
// Once we redo qml we will know all section/chat related details in each message form the parent components
// without an explicit need to fetch those details via message store/module.
property bool isChatBlocked: false
@ -344,6 +346,7 @@ Column {
messageContextMenu: root.messageContextMenu
contentType: root.messageContentType
isChatBlocked: root.isChatBlocked
emojiPopup: root.emojiPopup
communityId: root.communityId
stickersLoaded: root.stickersLoaded