mirror of
https://github.com/meshtastic/Meshtastic-Apple.git
synced 2026-04-20 22:13:56 +00:00
Hook ack errors up to the canRetry bool
This commit is contained in:
parent
0ac32df941
commit
e7f6402e51
1 changed files with 2 additions and 1 deletions
|
|
@ -19,7 +19,8 @@ extension MessageEntity {
|
|||
}
|
||||
|
||||
var canRetry: Bool {
|
||||
return ackError == 9 || ackError == 5 || ackError == 3
|
||||
let re = RoutingError(rawValue: Int(ackError))
|
||||
return re?.canRetry ?? false
|
||||
}
|
||||
|
||||
var tapbacks: [MessageEntity] {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue