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 contactsStore: chatContentRoot.contactsStore
messageContextMenuInst: contextmenu messageContextMenuInst: contextmenu
messageStore: messageStore messageStore: messageStore
emojiPopup: chatContentRoot.emojiPopup
usersStore: chatContentRoot.usersStore usersStore: chatContentRoot.usersStore
stickersLoaded: chatContentRoot.stickersLoaded stickersLoaded: chatContentRoot.stickersLoaded
isChatBlocked: chatContentRoot.isBlocked isChatBlocked: chatContentRoot.isBlocked

View File

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

View File

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

View File

@ -24,6 +24,8 @@ Column {
property var messageContextMenu property var messageContextMenu
property string channelEmoji 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 // 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. // without an explicit need to fetch those details via message store/module.
property bool isChatBlocked: false property bool isChatBlocked: false
@ -344,6 +346,7 @@ Column {
messageContextMenu: root.messageContextMenu messageContextMenu: root.messageContextMenu
contentType: root.messageContentType contentType: root.messageContentType
isChatBlocked: root.isChatBlocked isChatBlocked: root.isChatBlocked
emojiPopup: root.emojiPopup
communityId: root.communityId communityId: root.communityId
stickersLoaded: root.stickersLoaded stickersLoaded: root.stickersLoaded