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