mirror of
https://github.com/openclaw/openclaw.git
synced 2026-07-14 13:06:10 +00:00
fix(imessage): narrow recovered projection before use (#106022)
This commit is contained in:
committed by
GitHub
parent
9d07a96ac9
commit
8a2da4b1bf
@@ -229,7 +229,8 @@ export async function repairIMessageConversationAnchor(
|
||||
}
|
||||
}
|
||||
|
||||
if (matchedProjections.length === 0) {
|
||||
const [projection] = matchedProjections;
|
||||
if (!projection) {
|
||||
runtime?.error?.(`imessage: dropping anchorless message GUID=${guid}; no recent chat matched`);
|
||||
return null;
|
||||
}
|
||||
@@ -242,7 +243,6 @@ export async function repairIMessageConversationAnchor(
|
||||
return null;
|
||||
}
|
||||
|
||||
const projection = matchedProjections[0];
|
||||
if (projection.is_from_me) {
|
||||
runtime?.error?.(
|
||||
`imessage: dropping anchorless message GUID=${guid}; recovered authoritative row is from-me`,
|
||||
|
||||
Reference in New Issue
Block a user