mirror of
https://github.com/openclaw/openclaw.git
synced 2026-03-12 07:20:45 +00:00
fix(ios): harden share relay routing and delivery guards
This commit is contained in:
@@ -480,8 +480,8 @@ final class NodeAppModel {
|
||||
token: relay.token,
|
||||
password: relay.password,
|
||||
sessionKey: self.mainSessionKey,
|
||||
deliveryChannel: relay.deliveryChannel ?? self.shareDeliveryChannel,
|
||||
deliveryTo: relay.deliveryTo ?? self.shareDeliveryTo))
|
||||
deliveryChannel: self.shareDeliveryChannel,
|
||||
deliveryTo: self.shareDeliveryTo))
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1982,10 +1982,7 @@ extension NodeAppModel {
|
||||
let exactMatch = sorted.first { row in
|
||||
row.key == currentKey && normalize(row.lastChannel) != nil && normalize(row.lastTo) != nil
|
||||
}
|
||||
let fallback = sorted.first { row in
|
||||
normalize(row.lastChannel) != nil && normalize(row.lastTo) != nil
|
||||
}
|
||||
let selected = exactMatch ?? fallback
|
||||
let selected = exactMatch
|
||||
let channel = normalize(selected?.lastChannel)
|
||||
let to = normalize(selected?.lastTo)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user