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.
This commit is contained in:
parent
256c468c15
commit
28d7a51bb9
1 changed files with 1 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue