Remove the relationEventContentModel function from ChatBarCache

Remove the relationEventContentModel function from ChatBarCache as ContentProvider makes it unneeded. This means turning ContentProvider into a QML singleton.
This commit is contained in:
James Graham
2025-04-04 12:13:44 +00:00
parent 22b3641a07
commit 02e11e8008
6 changed files with 18 additions and 32 deletions

View File

@@ -219,7 +219,7 @@ QQC2.Control {
id: replyComponent
replyEventId: root.chatBarCache.replyId
replyAuthor: root.chatBarCache.relationAuthor
replyContentModel: root.chatBarCache.relationEventContentModel
replyContentModel: ContentProvider.contentModelForEvent(root.Message.room, root.chatBarCache.replyId, true)
Message.maxContentWidth: paneLoader.item.width
}
QQC2.Button {