Use the event sender instead of event ID for viaServers off a tombstone
Fixes https://github.com/vector-im/riot-web/issues/10206
This commit is contained in:
parent
35c0c3142f
commit
083c1a78ab
1 changed files with 3 additions and 3 deletions
|
@ -327,9 +327,9 @@ export default class MessageComposer extends React.Component {
|
||||||
event_id: createEventId,
|
event_id: createEventId,
|
||||||
room_id: replacementRoomId,
|
room_id: replacementRoomId,
|
||||||
|
|
||||||
// Try to join via the server that sent the event. This converts $something:example.org
|
// 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").
|
// into a server domain by splitting on colons and ignoring the first entry ("@something").
|
||||||
via_servers: [this.state.tombstone.getId().split(':').splice(1).join(':')],
|
via_servers: [this.state.tombstone.getSender().split(':').splice(1).join(':')],
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue