feat(core): Remove getter and setter for connectionSettings

This commit is contained in:
PapaTutuWawa committed 2023-04-03 17:56:31 +02:00
1 parent 47d821c02e
commit 3e43ac22d7
12 files changed
+121 -188

No files matched your search

+4 -6
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(() {