Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit cec9c90

Browse files
committed
Set which servers to try and join upgraded rooms through
Fixes element-hq/element-web#7991
1 parent e9226cd commit cec9c90

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/components/views/rooms/MessageComposer.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -285,6 +285,10 @@ export default class MessageComposer extends React.Component {
285285
action: 'view_room',
286286
highlighted: true,
287287
room_id: replacementRoomId,
288+
289+
// Try to join via the server that sent the event. This converts $something:example.org
290+
// into a server domain by splitting on colons and ignoring the first entry ("$something").
291+
via_servers: [this.state.tombstone.getId().split(':').splice(1).join(':')],
288292
});
289293
}
290294

0 commit comments

Comments
 (0)