[desktop] People: Remove from behind internal user flag (#3511)
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
|
||||
## v1.7.5 (Unreleased)
|
||||
|
||||
- Face grouping (beta).
|
||||
- Directly upload to selected album on drag and drop.
|
||||
- Include shared files in export.
|
||||
- .
|
||||
|
||||
@@ -301,10 +301,6 @@ const clusterBatchLinear = async (
|
||||
if (csim > nnCosineSimilarity && csim >= threshold) {
|
||||
nnIndex = j;
|
||||
nnCosineSimilarity = csim;
|
||||
|
||||
// If we've find something above our early exit threshold, stop
|
||||
// looking for a better match (A way to speed up clustering).
|
||||
if (csim >= 0.9) break;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -14,7 +14,6 @@ import type { EnteFile } from "@/new/photos/types/file";
|
||||
import { ensure } from "@/utils/ensure";
|
||||
import { throttled } from "@/utils/promise";
|
||||
import { proxy, transfer } from "comlink";
|
||||
import { isInternalUser } from "../feature-flags";
|
||||
import { getRemoteFlag, updateRemoteFlag } from "../remote-store";
|
||||
import { setSearchPeople } from "../search";
|
||||
import type { UploadItem } from "../upload/types";
|
||||
@@ -342,8 +341,6 @@ export const mlSync = async () => {
|
||||
const workerDidUnawaitedIndex = () => void updateClustersAndPeople();
|
||||
|
||||
const updateClustersAndPeople = async () => {
|
||||
if (!(await isInternalUser())) return;
|
||||
|
||||
const masterKey = await masterKeyFromSession();
|
||||
|
||||
// Fetch existing cgroups from remote.
|
||||
|
||||
@@ -174,6 +174,10 @@ export const reconstructPeople = async (): Promise<Person[]> => {
|
||||
// in the UI.
|
||||
if (isHidden) return undefined;
|
||||
|
||||
// Older versions of the mobile app marked hidden cgroups by setting
|
||||
// their name to an empty string.
|
||||
if (!name) return undefined;
|
||||
|
||||
// Person faces from all the clusters assigned to this cgroup, sorted by
|
||||
// their score.
|
||||
const faces = assigned
|
||||
|
||||
Reference in New Issue
Block a user