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:
Pascal Precht 2022-04-12 17:15:14 +02:00 committed by r4bbit.eth
parent 1b7be6060d
commit c772a31114
1 changed files with 7 additions and 0 deletions

View File

@ -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 {