mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-10 23:54:42 +00:00
fix(pairing): support legacy telegram allowFrom migration
This commit is contained in:
@@ -116,6 +116,11 @@ export const detectLegacyStateMigrations = vi.fn().mockResolvedValue({
|
||||
targetDir: "/tmp/oauth/whatsapp/default",
|
||||
hasLegacy: false,
|
||||
},
|
||||
pairingAllowFrom: {
|
||||
legacyTelegramPath: "/tmp/oauth/telegram-allowFrom.json",
|
||||
targetTelegramPath: "/tmp/oauth/telegram-default-allowFrom.json",
|
||||
hasLegacyTelegram: false,
|
||||
},
|
||||
preview: [],
|
||||
}) as unknown as MockFn;
|
||||
|
||||
@@ -306,6 +311,11 @@ export async function arrangeLegacyStateMigrationTest(): Promise<{
|
||||
targetDir: "/tmp/oauth/whatsapp/default",
|
||||
hasLegacy: false,
|
||||
},
|
||||
pairingAllowFrom: {
|
||||
legacyTelegramPath: "/tmp/oauth/telegram-allowFrom.json",
|
||||
targetTelegramPath: "/tmp/oauth/telegram-default-allowFrom.json",
|
||||
hasLegacyTelegram: false,
|
||||
},
|
||||
preview: ["- Legacy sessions detected"],
|
||||
});
|
||||
runLegacyStateMigrations.mockResolvedValueOnce({
|
||||
|
||||
Reference in New Issue
Block a user