mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-21 00:52:43 +02:00
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.
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
//
|
||||
// ShareRecentsDataSource.h
|
||||
// Riot
|
||||
//
|
||||
// Created by Aram Sargsyan on 8/10/17.
|
||||
// Copyright © 2017 matrix.org. All rights reserved.
|
||||
//
|
||||
|
||||
#import <MatrixKit/MatrixKit.h>
|
||||
|
||||
typedef NS_ENUM(NSInteger, ShareRecentsDataSourceMode)
|
||||
{
|
||||
RecentsDataSourceModePeople,
|
||||
RecentsDataSourceModeRooms
|
||||
};
|
||||
|
||||
@interface ShareRecentsDataSource : MXKRecentsDataSource
|
||||
|
||||
- (instancetype)initWithMatrixSession:(MXSession *)mxSession dataSourceMode:(ShareRecentsDataSourceMode)dataSourceMode;
|
||||
|
||||
@end
|
||||
Reference in New Issue
Block a user