[Flutter] Use deviceName instead of hostName for clients
This commit is contained in:
@@ -92,4 +92,12 @@ class Globals {
|
||||
Future<bool> setPrefFCMToken(String value) {
|
||||
return sharedPrefs.setString("fcm.token", value);
|
||||
}
|
||||
|
||||
String nameForClient() {
|
||||
if (this.deviceName.isNotEmpty) {
|
||||
return this.deviceName;
|
||||
} else {
|
||||
return this.hostname;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user