dont fingerprint machine clients

This commit is contained in:
miloschwartz
2026-02-09 14:41:40 -08:00
committed by Owen
parent 766606b08d
commit a49a9f8e3b
4 changed files with 17 additions and 4 deletions

View File

@@ -294,9 +294,11 @@ export async function getClient(
);
}
const isUserDevice = client.user !== null && client.user !== undefined;
// Replace name with device name if OLM exists
let clientName = client.clients.name;
if (client.olms) {
if (client.olms && isUserDevice) {
const model = client.currentFingerprint?.deviceModel || null;
clientName = getUserDeviceName(model, client.clients.name);
}