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
Add partial MSC4459 support and refactor related code (#730)
### Description
partial implementation of
[MSC4459](matrix-org/matrix-spec-proposals#4459)
Currently only sending the data and not rendering anything
Partially #729
#### Type of change
- [ ] Bug fix (non-breaking change which fixes an issue)
- [x] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing
functionality to not work as expected)
- [ ] This change requires a documentation update
### Checklist:
- [x] My code follows the style guidelines of this project
- [x] I have performed a self-review of my own code
- [x] I have commented my code, particularly in hard-to-understand areas
- [ ] I have made corresponding changes to the documentation
- [x] My changes generate no new warnings
### AI disclosure:
No AI used
@@ -191,7 +167,7 @@ export function MessageForwardInternal({
191
167
: undefined;
192
168
193
169
constbodyModifText=`(Forwarded message from ${
194
-
isPrivate ? 'a private room' : (getRoom(room.roomId)?.name??'a room')
170
+
isRoomPrivate(mx,room) ? 'a private room' : (getRoom(room.roomId)?.name??'a room')
195
171
})`;
196
172
197
173
letnewBodyPlain='';
@@ -230,7 +206,7 @@ export function MessageForwardInternal({
230
206
deletebaseContent['com.beeper.per_message_profile'];// remove per-message profile as that could confuse clients in the target room
231
207
letcontent;
232
208
// handle privacy stuff
233
-
if(isPrivate){
209
+
if(isRoomPrivate(mx,room)){
234
210
// if the message is from a private room, we should strip any media or mentions to avoid leaking information to the target room
235
211
// 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
236
212
content={
@@ -271,7 +247,7 @@ export function MessageForwardInternal({
0 commit comments