From 083c1a78ab35e3e71689a5edb30a6838efab2b15 Mon Sep 17 00:00:00 2001 From: Travis Ralston Date: Fri, 28 Jun 2019 12:34:46 -0600 Subject: [PATCH] Use the event sender instead of event ID for viaServers off a tombstone Fixes https://github.com/vector-im/riot-web/issues/10206 --- src/components/views/rooms/MessageComposer.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/views/rooms/MessageComposer.js b/src/components/views/rooms/MessageComposer.js index 5f9014db7a..f68bff9eca 100644 --- a/src/components/views/rooms/MessageComposer.js +++ b/src/components/views/rooms/MessageComposer.js @@ -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(':')], }); }