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:
committed by
Peter Steinberger
parent
a155ec0599
commit
518af0ef24
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user