fix(ChatContentView): make replying to messages work again
There was a bug that no handler was attached to the `onShowReply()` signal, which is necessary to hydrate the chat input with reply data. Fixes #5497
This commit is contained in:
parent
1b7be6060d
commit
c772a31114
|
@ -372,6 +372,13 @@ ColumnLayout {
|
||||||
Global.changeAppSectionBySectionType(Constants.appSection.chat)
|
Global.changeAppSectionBySectionType(Constants.appSection.chat)
|
||||||
root.rootStore.chatCommunitySectionModule.createOneToOneChat("", chatId, ensName)
|
root.rootStore.chatCommunitySectionModule.createOneToOneChat("", chatId, ensName)
|
||||||
}
|
}
|
||||||
|
onShowReplyArea: {
|
||||||
|
let obj = messageStore.getMessageByIdAsJson(messageId)
|
||||||
|
if (!obj) {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
chatInput.showReplyArea(messageId, obj.senderDisplayName, obj.messageText, obj.senderIcon, obj.contentType, obj.messageImage, obj.sticker)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
ColumnLayout {
|
ColumnLayout {
|
||||||
|
|
Loading…
Reference in New Issue