Refactoring and tidy up.

Make the preview manager a singleton (passing in the MXSession to functions). Fix tests.

PreviewManager → URLPreviewManager
URLPreviewViewData → URLPreviewData
URLPreviewCache → URLPreviewStore
This commit is contained in:
Doug
2021-09-01 12:28:56 +01:00
parent 4331994d72
commit 882fcab738
15 changed files with 217 additions and 210 deletions
@@ -15,7 +15,7 @@
*/
#import <MatrixKit/MatrixKit.h>
@class URLPreviewViewData;
@class URLPreviewData;
extern NSString *const URLPreviewDidUpdateNotification;
@@ -84,7 +84,7 @@ typedef NS_ENUM(NSInteger, RoomBubbleCellDataTag)
/**
A link if the textMessage contains one, otherwise nil.
*/
@property (nonatomic) URLPreviewViewData *urlPreviewData;
@property (nonatomic) URLPreviewData *urlPreviewData;
/**
MXKeyVerification object associated to key verification event when using key verification by direct message.