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

Set which servers to try and join upgraded rooms through
pull/21833/head
Travis Ralston 2019-01-10 16:28:11 -07:00 committed by GitHub
commit 33eef6f5ac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -285,6 +285,10 @@ export default class MessageComposer extends React.Component {
action: 'view_room',
highlighted: true,
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(':')],
});
}