fix avatar loading
This commit is contained in:
parent
111a875529
commit
89dd28fec6
6 changed files with 36 additions and 16 deletions
|
|
@ -1,4 +1,5 @@
|
|||
import "dart:convert";
|
||||
import "dart:io";
|
||||
|
||||
import "package:flutter/foundation.dart";
|
||||
import "package:matrix/matrix.dart";
|
||||
|
|
@ -59,8 +60,7 @@ class ClientController extends AsyncNotifier<Client> {
|
|||
Future<bool> login(String username, String password) async {
|
||||
final client = await future;
|
||||
try {
|
||||
final deviceName =
|
||||
"Nexus Client login at ${DateTime.now().toIso8601String()}";
|
||||
final deviceName = "Nexus Client login on ${Platform.localHostname}";
|
||||
final details = await MatrixApi(homeserver: client.homeserver).login(
|
||||
LoginType.mLoginPassword,
|
||||
initialDeviceDisplayName: deviceName,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue