EventSource Refactor

Move showing th event source to a call to RoomManager. This means the SourceRole is no longer required in the message and search models
This commit is contained in:
James Graham
2023-09-15 10:54:04 +00:00
parent ec4c156a8c
commit c04ddfde26
13 changed files with 38 additions and 36 deletions

View File

@@ -212,11 +212,6 @@ ColumnLayout {
*/
required property bool verified
/**
* @brief The full message source JSON.
*/
required property var jsonSource
/**
* @brief The x position of the message bubble.
*
@@ -609,7 +604,6 @@ ColumnLayout {
const contextMenu = fileDelegateContextMenu.createObject(root, {
author: root.author,
eventId: root.eventId,
eventSource: root.jsonSource,
file: file,
progressInfo: root.progressInfo,
plainText: root.plainText,
@@ -625,7 +619,6 @@ ColumnLayout {
selectedText: selectedText,
author: root.author,
eventId: root.eventId,
eventSource: root.jsonSource,
eventType: root.delegateType,
plainText: root.plainText,
htmlText: root.display,