Commit 9ab892de authored by armin's avatar armin
Browse files

Merge branch 'iosGalleryFix' into 'master'

ios image picker fixes

See merge request !132
parents 1a8cb167 2e3ee053
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
FileUploader::FileUploader( QObject *parent, RocketChatServerData *pServer, const QUrl &pUri, const QString &pChannelId ): QObject( parent ), FileUploader::FileUploader( QObject *parent, RocketChatServerData *pServer, const QUrl &pUri, const QString &pChannelId ): QObject( parent ),
mUri( pUri ), mChannelId( pChannelId ), mServer( pServer ) mUri( pUri ), mChannelId( pChannelId ), mServer( pServer )
{ {
#ifdef Q_OS_ANDROID #if defined ( Q_OS_ANDROID) || defined(Q_OS_IOS)
auto file = QSharedPointer<QFile>::create( pUri.path() ); auto file = QSharedPointer<QFile>::create( pUri.path() );
#else #else
auto file = QSharedPointer<QFile>::create( pUri.toLocalFile() ); auto file = QSharedPointer<QFile>::create( pUri.toLocalFile() );
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment