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

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