1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-11-22 04:02:40 +03:00

Merge pull request #2428 from matrix-org/travis/rver/7991

Set which servers to try and join upgraded rooms through
This commit is contained in:
Travis Ralston
2019-01-10 16:28:11 -07:00
committed by GitHub

View File

@@ -285,6 +285,10 @@ export default class MessageComposer extends React.Component {
action: 'view_room', action: 'view_room',
highlighted: true, highlighted: true,
room_id: replacementRoomId, room_id: replacementRoomId,
// Try to join via the server that sent the event. This converts $something:example.org
// into a server domain by splitting on colons and ignoring the first entry ("$something").
via_servers: [this.state.tombstone.getId().split(':').splice(1).join(':')],
}); });
} }