summaryrefslogtreecommitdiffstats
path: root/resources/qml/delegates
diff options
context:
space:
mode:
authorLoren Burkholder <computersemiexpert@outlook.com>2023-03-06 19:21:23 -0500
committerLoren Burkholder <computersemiexpert@outlook.com>2023-04-08 18:59:17 -0400
commit0096226aebc6f3ab0ec122e92dab40be5a863ec9 (patch)
tree6b761d478291e949a99909b9d84fde087d21fa2d /resources/qml/delegates
parentb0f3d39e1e629d581c19f68ad8efcb78b357502f (diff)
Implement unknown msgtype functionality
Diffstat (limited to 'resources/qml/delegates')
-rw-r--r--resources/qml/delegates/MessageDelegate.qml16
1 files changed, 15 insertions, 1 deletions
diff --git a/resources/qml/delegates/MessageDelegate.qml b/resources/qml/delegates/MessageDelegate.qml
index d298fa4e..9126186e 100644
--- a/resources/qml/delegates/MessageDelegate.qml
+++ b/resources/qml/delegates/MessageDelegate.qml
@@ -51,7 +51,7 @@ Item {
width: parent.width? parent.width: 0 // this should get rid of "cannot read property 'width' of null"
DelegateChoice {
- roleValue: MtxEvent.UnknownMessage
+ roleValue: MtxEvent.UnknownEvent
Placeholder {
typeString: d.typeString
@@ -102,6 +102,20 @@ Item {
}
DelegateChoice {
+ roleValue: MtxEvent.UnknownMessage
+
+ TextMessage {
+ formatted: d.formattedBody
+ body: d.body
+ isOnlyEmoji: d.isOnlyEmoji
+ isReply: d.isReply
+ keepFullText: d.keepFullText
+ metadataWidth: d.metadataWidth
+ }
+
+ }
+
+ DelegateChoice {
roleValue: MtxEvent.ConfettiMessage
TextMessage {