[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

@@ -156,7 +156,7 @@ class _AccountLoginPageState extends State<AccountLoginPage> {
final user = await APIClient.getUser(DirectTokenSource(uid, atokv), uid);
final client = await APIClient.addClient(DirectTokenSource(uid, atokv), fcmToken, Globals().deviceModel, Globals().version, Globals().hostname, Globals().clientType);
final client = await APIClient.addClient(DirectTokenSource(uid, atokv), fcmToken, Globals().deviceModel, Globals().version, Globals().nameForClient(), Globals().clientType);
acc.set(user, client, atokv, stokv);
await acc.save();