matrix-org / matrix-ios-sdk

The Matrix SDK for iOS
Apache License 2.0
452 stars 211 forks source link

Media loader: Make code use AFNetworking #466

Open manuroe opened 6 years ago

manuroe commented 6 years ago

This often happens that users on an homeserver can post and see messages in the app but it cannot see media like in https://github.com/vector-im/riot-ios/issues/1803.

The reason is that the message (all matrix REST API) part uses AFNetworking, which does certs support for us and the media loading part, managed by our poor direct implementation at the top of NSURLConnection does not follow.

The media loader old code probably needs some refactoring. It comes from a c+p from pre-matrix projects with patches over patches.

manuroe commented 6 years ago

or use a 3rd party lib that manages media cache for us.