duration NaN issue fix by kkarakamis · Pull Request #1812 · MessageKit/MessageKit

What does this implement/fix? Explain your changes.

If audio url has authentication, sometimes duration came as Nan. Integer(NaN) causes crash.

Does this close any currently open issues?

No

Any relevant logs, error output, etc?

Thread 1: Fatal error: Float value cannot be converted to Int because it is either infinite or NaN

Any other comments?

Nope

Where has this been tested?

Devices/Simulators:
Device: iPhone 14 Pro
Simulator: iPhone 14

iOS Version: iOS 16.3 / 16.6

Swift Version: swift 5

MessageKit Version: 3.7.0