mirror of
https://github.com/vector-im/element-web.git
synced 2025-12-15 22:31:32 +01:00
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
@ -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…
x
Reference in New Issue
Block a user