You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/app/components/message/modals/MessageForward.tsx
+2-6Lines changed: 2 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -224,6 +224,8 @@ export function MessageForwardInternal({
224
224
}
225
225
: {};
226
226
constbaseContent={ ...mEvent.getContent()};
227
+
deletebaseContent['m.relates_to'];// remove relations from the forwarded message
228
+
deletebaseContent['m.mentions'];// remove mentions from forwarded message
227
229
deletebaseContent['com.beeper.per_message_profile'];// remove per-message profile as that could confuse clients in the target room
228
230
letcontent;
229
231
// handle privacy stuff
@@ -232,8 +234,6 @@ export function MessageForwardInternal({
232
234
// we can still include the original message content in the body of the message, so we'll just use a fallback text/plain content with the original message body
233
235
content={
234
236
...baseContent,
235
-
'm.relates_to': null,// remove any relations to avoid confusion in the target room
236
-
'm.mentions': null,// remove mentions to avoid leaking information about users in the original room
237
237
...forwardedTextContent,
238
238
'moe.sable.message.forward': {
239
239
v: 1,
@@ -249,10 +249,6 @@ export function MessageForwardInternal({
0 commit comments