You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-07-28 15:22:05 +03:00
fix the bugs Tulir found - THANKS
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
@ -162,11 +162,12 @@ export default class ReplyThread extends React.Component {
|
||||
}
|
||||
|
||||
html = `<blockquote data-mx-reply><a href="${makeEventPermalink(ev.getRoomId(), ev.getId())}">In reply to</a> `
|
||||
+ `<a href="${makeUserPermalink(ev.getSender())}">${ev.getSender()}</a> ${html || body}</blockquote>`;
|
||||
// `<${ev.getSender()}> ${html || body}</blockquote>`;
|
||||
const lines = body.split('\n');
|
||||
const first = `> <${ev.getSender()}> ${lines.shift()}`;
|
||||
body = first + lines.map((line) => `> ${line}`).join('\n') + '\n';
|
||||
+ `<a href="${makeUserPermalink(ev.getSender())}">${ev.getSender()}</a><br>${html || body}</blockquote>`;
|
||||
const lines = body.trim().split('\n');
|
||||
if (lines.length > 0) {
|
||||
lines[0] = `<${ev.getSender()}> ${lines[0]}`;
|
||||
body = lines.map((line) => `> ${line}`).join('\n') + '\n\n';
|
||||
}
|
||||
|
||||
return {body, html};
|
||||
}
|
||||
|
Reference in New Issue
Block a user