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 )
anchors.horizontalCenter: parent.horizontalCenter
property string replyToMessageId: "0";
InReplyToRow {
onInReplyToMessageChanged: {
console.log("This is a reply!");
if (typeof newMessageInReplyToRow.inReplyToMessage === "object") {
visible: true;
newMessageColumn.replyToMessageId = newMessageInReplyToRow.inReplyToMessage.id.toString()
newMessageInReplyToRow.visible = true;
} else {
visible: false;
newMessageInReplyToRow.visible = false;
newMessageColumn.replyToMessageId = "0";
}
}