mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-26 20:35:39 -06:00
fix(signal): validate link response ids
Co-authored-by: jesse-merhi <79823012+jesse-merhi@users.noreply.github.com>
This commit is contained in:
@@ -121,7 +121,7 @@ class SignalLinkRpcProcessClient implements SignalLinkRpcClient {
|
||||
this.fail(new Error("signal-cli jsonRpc returned malformed JSON"));
|
||||
return;
|
||||
}
|
||||
if (!isRecord(parsed) || String(parsed.id ?? "") !== pending.id) {
|
||||
if (!isRecord(parsed) || typeof parsed.id !== "string" || parsed.id !== pending.id) {
|
||||
return;
|
||||
}
|
||||
this.pending = undefined;
|
||||
|
||||
Reference in New Issue
Block a user