Commit 2e3ee053 authored by armin's avatar armin
Browse files

ios image picker fixes

parent 1a8cb167
...@@ -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