Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F113644
D13.1732488335.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D13.1732488335.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
Sun, Nov 24, 2:45 PM (11 h, 34 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
39817
Default Alt Text
D13.1732488335.diff (1 KB)
Attached To
Mode
D13: Fix display of replying events without quotations
Attached
Detach File
Event Timeline
Log In to Comment