From fd243313029d4cbd92760824bc36987a4b609c52 Mon Sep 17 00:00:00 2001
From: Armin Felder <armin.felder@osalliance.com>
Date: Tue, 15 May 2018 21:36:47 +0200
Subject: [PATCH] improved ios file share flow

---
 engine.pro     | 9 +--------
 rocketchat.cpp | 3 ++-
 2 files changed, 3 insertions(+), 9 deletions(-)

diff --git a/engine.pro b/engine.pro
index 1630a17..50b3881 100644
--- a/engine.pro
+++ b/engine.pro
@@ -231,15 +231,8 @@ ios{
     HEADERS += websocket/linuxwebsocket/websocketlinux.h \
         notifications/ios/applepushnotifications.h \
         notifications/ios/iosdevicetokenstorage.h \
-        ios/FileHandlerActivity.h \
-        ios/fileopener.h \
-        segfaulthandler.h \
-        ios/IosGalleryPicker.h \
-        ios/shareheplersingelton.h \
         notifications/ios/iosnotificationreceiver.h \
-        notifications/ios/DelegateClass.h \
-        ios/IosBadges.h
-
+        notifications/ios/DelegateClass.h
 
     OBJECTIVE_SOURCES += notifications/ios/DelegateClass.mm
 
diff --git a/rocketchat.cpp b/rocketchat.cpp
index d6f504e..17a31f9 100755
--- a/rocketchat.cpp
+++ b/rocketchat.cpp
@@ -641,7 +641,8 @@ void RocketChat::resetLoginMethods()
 
 void RocketChat::openIosFile( const QString &fileName )
 {
-    mFileToShare = fileName;
+    mFileToShare= fileName;
+    openShareDialog();
 }
 
 void RocketChat::openUrl( const QString url )
-- 
GitLab