mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-10 15:45:01 +00:00
chore: Lint extensions folder.
This commit is contained in:
@@ -78,12 +78,16 @@ async function findConversationReference(recipient: {
|
||||
} | null> {
|
||||
if (recipient.type === "conversation") {
|
||||
const ref = await recipient.store.get(recipient.id);
|
||||
if (ref) return { conversationId: recipient.id, ref };
|
||||
if (ref) {
|
||||
return { conversationId: recipient.id, ref };
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
const found = await recipient.store.findByUserId(recipient.id);
|
||||
if (!found) return null;
|
||||
if (!found) {
|
||||
return null;
|
||||
}
|
||||
return { conversationId: found.conversationId, ref: found.reference };
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user