Hook ack errors up to the canRetry bool

This commit is contained in:
Garth Vander Houwen 2024-08-16 09:38:09 -07:00
parent 0ac32df941
commit e7f6402e51

View file

@ -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] {