Make reply-to-message work again

This commit is contained in:
Sebastian J. Wolf 2020-08-29 13:38:28 +02:00
parent a24bf81355
commit b447d2bd24

View file

@ -463,13 +463,17 @@ Page {
width: parent.width - ( 2 * Theme.horizontalPageMargin ) width: parent.width - ( 2 * Theme.horizontalPageMargin )
anchors.horizontalCenter: parent.horizontalCenter anchors.horizontalCenter: parent.horizontalCenter
property string replyToMessageId: "0";
InReplyToRow { InReplyToRow {
onInReplyToMessageChanged: { onInReplyToMessageChanged: {
console.log("This is a reply!"); console.log("This is a reply!");
if (typeof newMessageInReplyToRow.inReplyToMessage === "object") { if (typeof newMessageInReplyToRow.inReplyToMessage === "object") {
visible: true; newMessageColumn.replyToMessageId = newMessageInReplyToRow.inReplyToMessage.id.toString()
newMessageInReplyToRow.visible = true;
} else { } else {
visible: false; newMessageInReplyToRow.visible = false;
newMessageColumn.replyToMessageId = "0";
} }
} }