refactor: share nextcloud onboarding allowFrom lookup

This commit is contained in:
Peter Steinberger
2026-03-07 23:27:13 +00:00
parent 4956271da1
commit dc92f2e19d
3 changed files with 4 additions and 2 deletions

View File

@@ -984,7 +984,7 @@ describe("setTopLevelChannelDmPolicyWithAllowFrom", () => {
channel: "nextcloud-talk",
dmPolicy: "open",
getAllowFrom: (inputCfg) =>
(inputCfg.channels?.["nextcloud-talk"]?.allowFrom ?? []).map((entry) => String(entry)),
normalizeAllowFromEntries(inputCfg.channels?.["nextcloud-talk"]?.allowFrom ?? []),
});
expect(next.channels?.["nextcloud-talk"]?.allowFrom).toEqual(["alice", "*"]);
});