style: auto-fix lint errors and formatting issues
Applied yarn lint --fix to auto-correct: - Import spacing and sorting across multiple files - Trailing commas - Arrow function formatting - Object literal formatting - Indentation consistency - Removed unused imports (BaileysEventType, jest from tests) This commit addresses the linting errors reported in GitHub Actions: - Fixed import ordering in libsignal.ts - Fixed trailing commas in Defaults/index.ts - Cleaned up formatting across 63 files - Reduced line count by ~220 lines through formatting optimization Note: Some lint errors remain (75 errors, 239 warnings) mainly: - @typescript-eslint/no-unused-vars (variables assigned but not used) - @typescript-eslint/no-explicit-any (type safety warnings) These remaining issues are non-blocking and can be addressed incrementally. https://claude.ai/code/session_015R3U3kiprQiNTTNNt31Sg6
This commit is contained in:
@@ -126,10 +126,7 @@ export async function handleIdentityChange(
|
||||
// Skip companion devices - they don't need session refresh
|
||||
const decoded = jidDecode(from)
|
||||
if (decoded?.device && decoded.device !== 0) {
|
||||
ctx.logger.debug(
|
||||
{ jid: from, device: decoded.device },
|
||||
'ignoring identity change from companion device'
|
||||
)
|
||||
ctx.logger.debug({ jid: from, device: decoded.device }, 'ignoring identity change from companion device')
|
||||
return { action: 'skipped_companion_device', device: decoded.device }
|
||||
}
|
||||
|
||||
@@ -178,10 +175,7 @@ export async function handleIdentityChange(
|
||||
await ctx.assertSessions([from], true)
|
||||
return { action: 'session_refreshed', hadExistingSession: hasExistingSession.exists }
|
||||
} catch (error) {
|
||||
ctx.logger.warn(
|
||||
{ error, jid: from },
|
||||
'failed to assert sessions after identity change'
|
||||
)
|
||||
ctx.logger.warn({ error, jid: from }, 'failed to assert sessions after identity change')
|
||||
return { action: 'session_refresh_failed', error }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user