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

Commit

Permalink
Merge pull request #3159 from matrix-org/travis/pick-server-tombstone
Browse files Browse the repository at this point in the history
Use the event sender instead of event ID for viaServers off a tombstone
  • Loading branch information
turt2live authored Jul 2, 2019
2 parents 0c0a3c6 + 083c1a7 commit 1d54911
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/views/rooms/MessageComposer.js
Original file line number Diff line number Diff line change
Expand Up @@ -327,9 +327,9 @@ export default class MessageComposer extends React.Component {
event_id: createEventId,
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(':')],
// 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.getSender().split(':').splice(1).join(':')],
});
}

Expand Down

0 comments on commit 1d54911

Please sign in to comment.