Doug
6bae045bad
Include URL previews in addVerticalWhitespaceToString:forEvent: and remove heightForCellData:withMaximumWidth: from the various TextMsgBubbleCell subclasses.
...
Use the bubble cell data's available width when sizing URL previews and update the defaultAvailableWidth and reducedWidthThreshold accordingly.
2021-09-23 17:30:24 +01:00
Doug
ab09b96ee1
Use constants.
2021-09-16 17:13:56 +01:00
Doug
3729440196
Reduce the width of URL previews on 4" devices.
2021-09-16 16:41:21 +01:00
Doug
5acbc20fc9
Add more docs and comments.
...
Rename store.store(_:) to store.cache(_:).
2021-09-08 09:51:47 +01:00
Doug
bc8dda1097
Remove "Loading preview..." label.
2021-09-07 16:12:12 +01:00
Doug
31012067f6
Fix unsatisfiable constraints messages.
2021-09-07 14:49:51 +01:00
Doug
632769bb64
Ensure correct font is used.
2021-09-02 18:08:35 +01:00
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