mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-26 12:26:38 -06:00
fix(watch): encode approval instance on resolve
This commit is contained in:
@@ -624,9 +624,6 @@ final class WatchConnectivityReceiver: NSObject, @unchecked Sendable {
|
||||
if let gatewayStableID = WatchGatewayID.exact(message.gatewayStableID) {
|
||||
payload["gatewayStableID"] = gatewayStableID
|
||||
}
|
||||
if let approvalInstanceId = message.approvalInstanceId, !approvalInstanceId.isEmpty {
|
||||
payload["approvalInstanceId"] = approvalInstanceId
|
||||
}
|
||||
if let text = message.text?.trimmingCharacters(in: .whitespacesAndNewlines),
|
||||
!text.isEmpty
|
||||
{
|
||||
@@ -675,6 +672,9 @@ final class WatchConnectivityReceiver: NSObject, @unchecked Sendable {
|
||||
if let gatewayStableID = WatchGatewayID.exact(message.gatewayStableID) {
|
||||
payload["gatewayStableID"] = gatewayStableID
|
||||
}
|
||||
if let approvalInstanceId = message.approvalInstanceId, !approvalInstanceId.isEmpty {
|
||||
payload["approvalInstanceId"] = approvalInstanceId
|
||||
}
|
||||
if let sentAtMs = message.sentAtMs {
|
||||
payload["sentAtMs"] = sentAtMs
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user