diff options
author | Loren Burkholder <computersemiexpert@outlook.com> | 2023-03-06 19:21:23 -0500 |
---|---|---|
committer | Loren Burkholder <computersemiexpert@outlook.com> | 2023-04-08 18:59:17 -0400 |
commit | 0096226aebc6f3ab0ec122e92dab40be5a863ec9 (patch) | |
tree | 6b761d478291e949a99909b9d84fde087d21fa2d /resources/qml | |
parent | Translated using Weblate (German) (diff) | |
download | nheko-0096226aebc6f3ab0ec122e92dab40be5a863ec9.tar.xz |
Implement unknown msgtype functionality
Diffstat (limited to 'resources/qml')
-rw-r--r-- | resources/qml/delegates/MessageDelegate.qml | 16 |
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 { |