mirror of
https://github.com/moltbot/moltbot.git
synced 2026-04-20 21:23:23 +00:00
fix: preserve mobile bootstrap auth fallback (#60238) (thanks @ngutman)
This commit is contained in:
@@ -1064,10 +1064,8 @@ export function attachGatewayWsMessageHandler(params: {
|
||||
issuedAtMs: deviceToken.rotatedAtMs ?? deviceToken.createdAtMs,
|
||||
});
|
||||
}
|
||||
const bootstrapProfileForHello: DeviceBootstrapProfile | null = device
|
||||
? bootstrapProfile
|
||||
: null;
|
||||
if (device && bootstrapProfileForHello !== null) {
|
||||
if (device && bootstrapProfile !== null) {
|
||||
const bootstrapProfileForHello = bootstrapProfile as DeviceBootstrapProfile;
|
||||
for (const bootstrapRole of bootstrapProfileForHello.roles) {
|
||||
if (bootstrapDeviceTokens.some((entry) => entry.role === bootstrapRole)) {
|
||||
continue;
|
||||
|
||||
Reference in New Issue
Block a user