Inline Edit Loader

Put the edit component in a loader to that it doesn't use resources when not in use.

CCBUG: 465715
This commit is contained in:
James Graham
2023-02-15 19:30:23 +00:00
parent f186be7314
commit f785e4d5b0

View File

@@ -24,10 +24,13 @@ TimelineContainer {
visible: currentRoom.chatBoxEditId !== model.eventId
isEmote: messageDelegate.isEmote
}
MessageEditComponent {
Loader {
Layout.fillWidth: true
messageId: model.eventId
visible: currentRoom.chatBoxEditId === model.eventId
active: visible
sourceComponent: MessageEditComponent {
messageId: model.eventId
}
}
LinkPreviewDelegate {
Layout.fillWidth: true