Fix improper splice when determining vias for tombstones (#7159)

`splice` takes one element from the array whereas `slice` takes all after a given point. We want `slice` so we can pick up ipv6 addresses and port numbers.
pull/21833/head
Travis Ralston 2021-11-18 13:50:37 -07:00 committed by GitHub
parent 256c468c15
commit 28d7a51bb9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -370,7 +370,7 @@ export default class MessageComposer extends React.Component<IProps, IState> {
if (createEvent && createEvent.getId()) createEventId = createEvent.getId();
}
const viaServers = [this.state.tombstone.getSender().split(':').splice(1).join(':')];
const viaServers = [this.state.tombstone.getSender().split(':').slice(1).join(':')];
dis.dispatch({
action: 'view_room',
highlighted: true,