Skip to content

Conversation

@kkarakamis
Copy link
Contributor

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

If audio url has authentication, sometimes duration came as Nan.
Integer(NaN) causes crash.
@kkarakamis kkarakamis changed the title duration Nan issue fix duration NaN issue fix Sep 1, 2023
@Kaspik Kaspik merged commit 3fab2f2 into MessageKit:main Sep 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants