diff --git a/src/components/views/rooms/MessageComposer.js b/src/components/views/rooms/MessageComposer.js index e15ca047ac..aefee9809a 100644 --- a/src/components/views/rooms/MessageComposer.js +++ b/src/components/views/rooms/MessageComposer.js @@ -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(':')], }); }