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

Commit

Permalink
Set which servers to try and join upgraded rooms through
Browse files Browse the repository at this point in the history
  • Loading branch information
turt2live committed Jan 10, 2019
1 parent e9226cd commit cec9c90
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/components/views/rooms/MessageComposer.js
Original file line number Diff line number Diff line change
Expand Up @@ -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(':')],
});
}

Expand Down

0 comments on commit cec9c90

Please sign in to comment.