Commit Graph

14 Commits

Author SHA1 Message Date
Giom Foret 45319ca575 Share extension mxstore rework
- Create the MXRoom instance only when the room is selected.
2017-09-29 10:37:54 +02:00
Aram Sargsyan 0b0a4a12b8 Review changes 2017-09-08 19:02:45 +04:00
Aram Sargsyan c962a056e3 Finished rework, getting rooms with all the necessary information from MXStore 2017-08-31 17:51:49 +04:00
Aram Sargsyan ee4a76674a Improved cell rendering 2017-08-26 15:54:25 +04:00
Aram Sargsyan 9225f5f9cf Merge branch 'develop' of https://github.com/vector-im/riot-ios into app-extension-improvements 2017-08-25 18:12:15 +04:00
Giom Foret be2fe8fea9 App extension - Improvement: Reduce memory consumption.
Force the ShareExtensionManager to release the primary view controller when the action is completed.

We observed that `dealloc` is called for this view controller when the request is cancelled with error (`cancelRequestWithError`), but it is not called when the request is completed (`completeRequestReturningItems`).
2017-08-25 11:55:37 +02:00
Aram Sargsyan 56327c5041 Merge branch 'app-extension-improvements' of https://github.com/aramsargsyan/riot-ios into app-extension-improvements 2017-08-22 19:56:30 +04:00
Aram Sargsyan 0e89f69ee4 Added real support for sending multiple images (up to 5). Fixed bug when images weren't being resized. Introduced a category for NSItemProvider to easily track if the item was loaded or not. 2017-08-22 19:52:32 +04:00
Giom Foret e53e7bc10b App Extension - Fix matrix session handling
The matrix session should be handled by the ShareExtensionManager. This manager is able to prepare, suspend and resume the session.
Note: The ShareViewController is reloaded each time the extension is launched
2017-08-21 22:33:06 +02:00
Aram Sargsyan b1ae853be4 Introduced new ShareExtensionDelegate method didStartSendingToRoom to notify the viewController when the request is initiated to only then show the loading hud, block interaction with the view, etc 2017-08-21 01:39:08 +04:00
Aram Sargsyan ca2b519f40 Added comments describing ShareExtensionManager public functionality + small method renaming 2017-08-18 02:27:56 +04:00
Aram Sargsyan e34e0544a3 Fixed retain cycles, changed color constant 2017-08-17 19:28:08 +04:00
Aram Sargsyan bbe5a7f82b Loading HUD usage in the extension, Image resoulution alertController introduced 2017-08-17 00:01:54 +04:00
Aram Sargsyan 89592fd34c Reworked the Share Extension to use a subclass of MXKRecentsDataSource to show content, solved the room order issue, as well introduced a new class ShareExtensionManager responsible for Sharing content and communicating with the system to terminate the extension with the appropriate exit code when needed. 2017-08-11 02:38:47 +04:00