Commit Graph

16 Commits

Author SHA1 Message Date
Andy Uhnak 74b369e3af Track all errors in Sentry 2022-08-23 08:14:59 +01:00
Andy Uhnak dc33ec9b9d Exclude all items from iCloud backup
Signed-off-by: Andy Uhnak <andyuhnak@gmail.com>
2022-02-11 11:45:17 +00:00
Doug 1249b8c172 Re-enable link detection in clearStore instead of via NotificationCenter. 2021-10-14 14:24:01 +01:00
Doug ca61b1cd04 Add observer to re-enable link detection when signing out of an account. 2021-10-13 16:01:19 +01:00
Doug 2080a28563 Use MXError and MXHTTPOperation where possible. 2021-10-13 14:51:50 +01:00
Doug 90b3b71874 Stop requesting URL previews if the feature has been disabled on the homeserver. 2021-10-13 12:51:15 +01:00
Doug a0af63131f Conform URLPreviewData to MXKURLPreviewDataProtocol. 2021-09-29 12:12:25 +01:00
Doug 0764252138 Check whether URL previews should be shown in a single location.
Reset all cell data when this setting is changed to force a refresh.
Rename `hasClosedPreview(from:)` to `shouldShowPreview(for:)` for clarity and potentially adding more rules at a later date.
2021-09-29 11:39:11 +01:00
Doug a8b0fe6277 Log Core Data save errors. Use a static property for the Core Data in memory SQLite URL. 2021-09-08 17:45:02 +01:00
Doug 3d936483a7 Rename Core Data objects.
URLPreviewCacheData becomes URLPreviewData in the model with a class name of URLPreviewDataMO
ClosedURLData becomes URLPreviewUserData in the model with a class name of URLPreviewUserDataMO
2021-09-08 15:47:14 +01:00
Doug 4a33f7f1e6 Update for PR feedback.
URLPreviewManager becomes URLPreviewService.
addVerticalWhitespaceToString used instead of heightForCellData multiple times.
All newline characters removed.
2021-09-08 15:10:13 +01:00
Doug 5acbc20fc9 Add more docs and comments.
Rename store.store(_:) to store.cache(_:).
2021-09-08 09:51:47 +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 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
Doug e7304f0e61 Begin adding link detection to RoomBubbleCellData. 2021-07-21 15:14:25 +01:00