mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-19 16:13:42 +02:00
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:
@@ -14,9 +14,12 @@
|
||||
// limitations under the License.
|
||||
//
|
||||
|
||||
import Foundation
|
||||
import CoreData
|
||||
|
||||
extension ClosedURLPreview {
|
||||
// Nothing to extend, however having this file stops Xcode
|
||||
// complaining that it can't find ClosedURLPreview.
|
||||
convenience init(context: NSManagedObjectContext, eventID: String, roomID: String) {
|
||||
self.init(context: context)
|
||||
self.eventID = eventID
|
||||
self.roomID = roomID
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user