refactor(onboarding): reuse allowFrom merge helper in extensions

This commit is contained in:
Peter Steinberger
2026-02-16 23:03:23 +00:00
parent 12a947223b
commit 7632e60d70
7 changed files with 18 additions and 10 deletions

View File

@@ -1,6 +1,7 @@
import {
addWildcardAllowFrom,
formatDocsLink,
mergeAllowFromEntries,
promptAccountId,
DEFAULT_ACCOUNT_ID,
normalizeAccountId,
@@ -99,7 +100,7 @@ async function promptNextcloudTalkAllowFrom(params: {
...existingAllowFrom.map((item) => String(item).trim().toLowerCase()).filter(Boolean),
...resolvedIds,
];
const unique = [...new Set(merged)];
const unique = mergeAllowFromEntries(undefined, merged);
if (accountId === DEFAULT_ACCOUNT_ID) {
return {