Fix username in bloc id being case sensitive

This commit is contained in:
Ming Ming 2022-01-29 00:39:14 +08:00
parent ab202f65f2
commit 2c62b35321

View file

@ -1,7 +1,7 @@
import 'package:nc_photos/account.dart';
String getInstNameForAccount(String className, Account account) =>
"$className(${account.scheme}://${account.username}@${account.address})";
"$className(${account.scheme}://${account.username.toCaseInsensitiveString()}@${account.address})";
String getInstNameForRootAwareAccount(String className, Account account) =>
"$className(${account.scheme}://${account.username}@${account.address}?${account.roots.join('&')})";
"$className(${account.scheme}://${account.username.toCaseInsensitiveString()}@${account.address}?${account.roots.join('&')})";