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
+1 -4
View File
@@ -31,7 +31,7 @@
@protocol LegacyAppDelegateDelegate;
@class CallBar;
@class CallPresenter;
@class PreviewManager;
@class URLPreviewManager;
#pragma mark - Notifications
/**
@@ -105,9 +105,6 @@ UINavigationControllerDelegate
// Associated matrix sessions (empty by default).
@property (nonatomic, readonly) NSArray *mxSessions;
#warning Move this elsewhere.
@property (nonatomic, readonly) PreviewManager *previewManager;
// Current selected room id. nil if no room is presently visible.
@property (strong, nonatomic) NSString *visibleRoomId;