Commit Graph

7 Commits

Author SHA1 Message Date
Giom Foret 4b61d5a4ba 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
Giom Foret 36d080400c 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 207345d6fe 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 fe0bc0abfe Added comments describing ShareExtensionManager public functionality + small method renaming 2017-08-18 02:27:56 +04:00
Aram Sargsyan 6541c12b19 Fixed retain cycles, changed color constant 2017-08-17 19:28:08 +04:00
Aram Sargsyan 2e9ef19f53 Loading HUD usage in the extension, Image resoulution alertController introduced 2017-08-17 00:01:54 +04:00
Aram Sargsyan 1d5837ac0c 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