Commit Graph

7 Commits

Author SHA1 Message Date
Doug aace9d0a96 Show an activity indicator until the preview has loaded. 2021-09-02 17:37:48 +01:00
Doug 8624e196e6 Update layout for text only previews. 2021-09-02 12:41:55 +01:00
Doug 25264241d8 Use stack views for layout. 2021-09-02 11:38:16 +01:00
Doug 3c85db9f3d Refactoring and tidy up.
Make the preview manager a singleton (passing in the MXSession to functions). Fix tests.

PreviewManager → URLPreviewManager
URLPreviewViewData → URLPreviewData
URLPreviewCache → URLPreviewStore
2021-09-01 12:28:56 +01:00
Doug e6449c978c Load and store URLPreviewViewData in RoomBubbleCellData.
Implement close button and store the action in Core Data. Hide the preview image view when no image is received. Remove line breaks in description text.
2021-09-01 10:37:37 +01:00
Doug b1bf11eb52 Add comments about the un-sanitized URL. 2021-08-24 09:42:55 +01:00
Doug 7ba054f6c9 Add PreviewManger with Core Data cache and a URLPreviewView with a view model.
Changes to RoomDataSource still to come.
2021-08-23 17:56:24 +01:00