Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F85825040
D13.1793249019.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Authored By
Unknown
Size
1 KB
Referenced Files
None
Subscribers
None
D13.1793249019.diff
View Options
diff --git a/src/contents/ui/event-types/TextTemplate.qml b/src/contents/ui/event-types/TextTemplate.qml
--- a/src/contents/ui/event-types/TextTemplate.qml
+++ b/src/contents/ui/event-types/TextTemplate.qml
@@ -56,11 +56,9 @@
</style>
`;
const formattedBody = event.content.formatted_body;
- if (event.replyingToEventId) {
- if (formattedBody.startsWith('<mx-reply>')) {
- const index = formattedBody.indexOf('</mx-reply>');
- return stylesheet + formattedBody.slice(index + '</mx-reply>'.length);
- }
+ if (event.replyingToEventId && formattedBody.startsWith('<mx-reply>')) {
+ const index = formattedBody.indexOf('</mx-reply>');
+ return stylesheet + formattedBody.slice(index + '</mx-reply>'.length);
} else {
return stylesheet + formattedBody;
}
diff --git a/src/tests/quick-tests/tst_EventView.qml b/src/tests/quick-tests/tst_EventView.qml
--- a/src/tests/quick-tests/tst_EventView.qml
+++ b/src/tests/quick-tests/tst_EventView.qml
@@ -90,6 +90,7 @@
sender: '',
type: 'm.room.message',
stateKey: '',
+ replyingToEventId: '$xxx',
content: {
msgtype: 'm.text',
body: '> some quote\n**some body**',
@@ -104,6 +105,7 @@
sender: '',
type: 'm.room.message',
stateKey: '',
+ replyingToEventId: '$xxx',
content: {
msgtype: 'm.text',
body: '**some body**',
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Oct 28, 9:43 PM (17 h, 47 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1798701
Default Alt Text
D13.1793249019.diff (1 KB)
Attached To
Mode
D13: Fix display of replying events without quotations
Attached
Detach File
Event Timeline