feat(core): Remove getter and setter for connectionSettings

This commit is contained in:
2023-04-03 17:56:31 +02:00
parent 47d821c02e
commit 3e43ac22d7
12 changed files with 121 additions and 188 deletions

View File

@@ -108,12 +108,10 @@ class _MyHomePageState extends State<MyHomePage> {
setState(() {
loading = true;
});
connection.setConnectionSettings(
ConnectionSettings(
jid: JID.fromString(jidController.text),
password: passwordController.text,
useDirectTLS: true,
),
connection.connectionSettings = ConnectionSettings(
jid: JID.fromString(jidController.text),
password: passwordController.text,
useDirectTLS: true,
);
final result = await connection.connect(waitUntilLogin: true);
setState(() {