fix(api): keep a deferral while the phone gate state is unknown (#2554)

This commit is contained in:
Hampus authored and GitHub committed 2026-09-06 23:41:29 +02:00
1 parent 328dc06ab0
commit 82859dc2f6
3 files changed
+9 -3

No files matched your search

@@ -632,6 +632,8 @@ describe('Deferred phone verification gate', () => {
await configurePhoneGate({deferred_phone_gate_window_hours: 0.0001});
const outsideWindow = await createGuildWithInvite(harness);
await addFillerMember(outsideWindow.inviteCode);
const beforeJoin = await readFlags(subject.userId);
expect(beforeJoin & DEFERRED_PHONE_ON_COMMUNITY_JOIN).not.toBe(0);
await createBuilder(harness, subject.token).post(`/invites/${outsideWindow.inviteCode}`).expect(200).execute();
const flags = await readFlags(subject.userId);