Fix ping config lost in ConnectForm
Reported-by: xse <xse@riseup.net> References: https://lists.sr.ht/~emersion/public-inbox/patches/32126
This commit is contained in:
parent
576b9d51eb
commit
e3c2d85a94
1 changed files with 7 additions and 0 deletions
|
@ -617,6 +617,13 @@ export default class App extends Component {
|
||||||
}
|
}
|
||||||
|
|
||||||
connect(params) {
|
connect(params) {
|
||||||
|
// Merge our previous connection params so that config options such as
|
||||||
|
// the ping interval are applied
|
||||||
|
params = {
|
||||||
|
...this.state.connectParams,
|
||||||
|
...params,
|
||||||
|
};
|
||||||
|
|
||||||
let serverID = null;
|
let serverID = null;
|
||||||
this.setState((state) => {
|
this.setState((state) => {
|
||||||
let update;
|
let update;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue