fix: Client names being super long

This commit is contained in:
Sorunome 2021-09-21 09:04:34 +02:00
parent 396a433cae
commit 9999105d34
No known key found for this signature in database
GPG Key ID: B19471D07FC9BE9C

View File

@ -134,7 +134,8 @@ class MatrixState extends State<Matrix> with WidgetsBindingObserver {
final multiAccount = client.isLogged();
if (!multiAccount) return client;
_loginClientCandidate ??= ClientManager.createClient(
client.generateUniqueTransactionId())
// we use the first clients here, else we can easily end up with super long client names.
widget.clients.first.generateUniqueTransactionId())
..onLoginStateChanged
.stream
.where((l) => l == LoginState.loggedIn)