mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-05-02 06:06:57 +02:00
vector-im/element-ios/issues/5009 - Implemented multi-room forwarding and added various tweaks following code review.
This commit is contained in:
@@ -16,25 +16,25 @@
|
||||
|
||||
#import <MatrixKit/MatrixKit.h>
|
||||
|
||||
typedef NS_ENUM(NSInteger, ShareDataSourceMode)
|
||||
{
|
||||
DataSourceModePeople,
|
||||
DataSourceModeRooms
|
||||
};
|
||||
@class ShareDataSource;
|
||||
|
||||
@protocol ShareDataSourceDelegate <NSObject>
|
||||
|
||||
- (void)shareDataSourceDidChangeSelectedRoomIdentifiers:(ShareDataSource *)shareDataSource;
|
||||
|
||||
@end
|
||||
|
||||
@interface ShareDataSource : MXKRecentsDataSource
|
||||
|
||||
- (instancetype)initWithMode:(ShareDataSourceMode)dataSourceMode
|
||||
fileStore:(MXFileStore *)fileStore
|
||||
credentials:(MXCredentials *)credentials;
|
||||
@property (nonatomic, weak) id<ShareDataSourceDelegate> shareDelegate;
|
||||
|
||||
/**
|
||||
Returns the cell data at the index path
|
||||
|
||||
@param indexPath the index of the cell
|
||||
@return the MXKRecentCellData instance if it exists
|
||||
*/
|
||||
- (MXKRecentCellData *)cellDataAtIndexPath:(NSIndexPath *)indexPath;
|
||||
@property (nonatomic, strong, readonly) NSSet<NSString *> *selectedRoomIdentifiers;
|
||||
|
||||
- (instancetype)initWithFileStore:(MXFileStore *)fileStore
|
||||
credentials:(MXCredentials *)credentials;
|
||||
|
||||
- (void)selectRoomWithIdentifier:(NSString *)roomIdentifier animated:(BOOL)animated;
|
||||
|
||||
- (void)deselectRoomWithIdentifier:(NSString *)roomIdentifier animated:(BOOL)animated;
|
||||
|
||||
@end
|
||||
|
||||
Reference in New Issue
Block a user