Use the ChatBar Component for new thread messages
{width=148 height=210}
Note: there is still an issue where after starting a new thread the threaded messages only appear after a restart as the root event needs re-downloading from the server to get the thread info added. My plan is to tackle this next.
This commit is contained in:
@@ -118,7 +118,7 @@ QQC2.TextArea {
|
||||
text: i18nc("@action:button", "Cancel")
|
||||
icon.name: "dialog-close"
|
||||
onTriggered: {
|
||||
root.chatBarCache.editId = "";
|
||||
root.chatBarCache.clearRelations();
|
||||
}
|
||||
shortcut: "Escape"
|
||||
}
|
||||
|
||||
@@ -205,10 +205,9 @@ DelegateChooser {
|
||||
}
|
||||
|
||||
DelegateChoice {
|
||||
roleValue: MessageComponentType.Edit
|
||||
roleValue: MessageComponentType.ChatBar
|
||||
delegate: ChatBarComponent {
|
||||
room: root.room
|
||||
chatBarCache: room.editCache
|
||||
actionsHandler: root.actionsHandler
|
||||
maxContentWidth: root.maxContentWidth
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user