peter-iakovlev / Telegram

Telegram Messenger for iOS
3.23k stars 858 forks source link

error in importing any audio files that has artist or title in its meta data items with share extension #267

Open hamedmohammadi opened 6 years ago

hamedmohammadi commented 6 years ago

according to this file https://github.com/peter-iakovlev/Telegram/blob/public/Share/TGItemProviderSignals.m in function signalForAudioItemProvider on lines 191 and 192 we put AVMetadataItem* in an NSString pointer that cause an error when we want to fetch length on lines 208 and 210 the error tells AVMetadataItem object has not any method call length so the extension will terminated.