From: xse <xse@riseup.net>
---
The ping interval was only set when using autoconnect,
Have a good day!
components/connect-form.js | 3 +++
1 file changed, 3 insertions(+)
diff --git a/components/connect-form.js b/components/connect-form.js
index 5b8a529..f971e81 100644
--- a/components/connect-form.js
+++ b/components/connect-form.js
@@ -11,6 +11,7 @@ export default class ConnectForm extends Component {
username: "",
realname: "",
autojoin: true,
+ ping: 0,
};
nickInput = createRef();
@@ -28,6 +29,7 @@ export default class ConnectForm extends Component {
rememberMe: props.params.autoconnect || false,
username: props.params.username || "",
realname: props.params.realname || "",
+ ping: props.params.ping || 0,
};
}
}
@@ -54,6 +56,7 @@ export default class ConnectForm extends Component {
realname: this.state.realname,
saslPlain: null,
autojoin: [],
+ ping: this.state.ping,
};
if (this.state.password) {
--
2.34.2
Good catch! One comment below.
On Saturday, May 7th, 2022 at 23:25, ~xse <xse@git.sr.ht> wrote:
> @@ -54,6 +56,7 @@ export default class ConnectForm extends Component {
> realname: this.state.realname,
> saslPlain: null,
> autojoin: [],
> + ping: this.state.ping,
We shouldn't need to add this to the state, we should be able to directly use
props.params.ping here.