[Flutter] Use deviceName instead of hostName for clients

This commit is contained in:
2025-12-18 14:51:15 +01:00
parent b2de793758
commit 54c4f873fc
6 changed files with 49 additions and 15 deletions

View File

@@ -527,7 +527,7 @@ class _AccountRootPageState extends State<AccountRootPage> {
await Globals().setPrefFCMToken(fcmToken);
final user = await APIClient.createUserWithClient(null, fcmToken, Globals().platform, Globals().version, Globals().hostname, Globals().clientType);
final user = await APIClient.createUserWithClient(null, fcmToken, Globals().platform, Globals().version, Globals().nameForClient(), Globals().clientType);
acc.set(user.user, user.clients[0], user.adminKey, user.sendKey);