feat: Remember last successful logged in homeserver
This commit is contained in:
parent
00c95e008c
commit
0401456481
1 changed files with 3 additions and 0 deletions
|
|
@ -1,3 +1,4 @@
|
||||||
|
import 'package:fluffychat/config/setting_keys.dart';
|
||||||
import 'package:flutter/foundation.dart';
|
import 'package:flutter/foundation.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
|
|
||||||
|
|
@ -65,6 +66,8 @@ Future<void> connectToHomeserverFlow(
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
await AppSettings.defaultHomeserver.setItem(homeserverInput);
|
||||||
|
|
||||||
if (context.mounted) {
|
if (context.mounted) {
|
||||||
setState(AsyncSnapshot.withData(ConnectionState.done, true));
|
setState(AsyncSnapshot.withData(ConnectionState.done, true));
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue