config: support clawdis.json path for rebranding

- Add CONFIG_PATH_CLAWDIS (~/.clawdis/clawdis.json) as preferred path
- Keep CONFIG_PATH_LEGACY (~/.warelay/warelay.json) for backward compatibility
- Update loadConfig() to check clawdis.json first, fallback to warelay.json
- Fix TypeScript type error in extractMentionedJids (null handling)

Part of the warelay → clawdis rebranding effort.
This commit is contained in:
Eng. Juan Combetto
2025-12-04 14:52:31 +09:00
committed by Peter Steinberger
parent a155ec0599
commit 518af0ef24
2 changed files with 33 additions and 7 deletions

View File

@@ -359,7 +359,7 @@ function extractMentionedJids(
const message = unwrapMessage(rawMessage);
if (!message) return undefined;
const candidates: (string[] | undefined)[] = [
const candidates: (string[] | null | undefined)[] = [
message.extendedTextMessage?.contextInfo?.mentionedJid,
message.extendedTextMessage?.contextInfo?.quotedMessage?.extendedTextMessage
?.contextInfo?.mentionedJid,