Only login if the client is logged out
This commit is contained in:
@@ -54,6 +54,7 @@ class _MyHomePageState extends State<MyHomePage> {
|
||||
|
||||
try {
|
||||
await client.checkHomeserver(Uri.parse(homeserver));
|
||||
if (!client.isLogged())
|
||||
await client.login(LoginType.mLoginPassword,
|
||||
password: password,
|
||||
identifier: AuthenticationUserIdentifier(user: username));
|
||||
|
||||
Reference in New Issue
Block a user