Commit graph

913 commits

Author SHA1 Message Date
Stefan Ceriu
d4c7a2b0d1 Revert "Revert "#4693 - Drop iOS 11 support."" 2021-09-14 11:41:36 +03:00
Doug
26567464e4 Revert height computation for now. 2021-09-08 15:59:30 +01:00
Doug
24afc7af6c 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
ea14ed9616 Add more docs and comments.
Rename store.store(_:) to store.cache(_:).
2021-09-08 09:51:47 +01:00
Doug
1c7cef52a0 Merge branch 'develop' into doug/888_add_url_previews 2021-09-07 17:51:31 +01:00
Doug
4ad041622c Remove "Loading preview..." label. 2021-09-07 16:12:12 +01:00
Doug
1c7adf0922 Fix unsatisfiable constraints messages. 2021-09-07 14:49:51 +01:00
Doug
7448ca1002 Observe URL preview update notification in RoomViewController.
Update bubbleTableView's content offset when a preview above the bottom most visible cell changes the height of the table's content.
2021-09-07 14:49:51 +01:00
Doug
e8bc470bd2 Add MediaCompressionHelper.defaultCompressionMode for use in RoomViewController. 2021-09-07 14:46:02 +01:00
Doug
46b79bec45 Add comments. 2021-09-06 18:15:55 +01:00
Doug
a300cab626 Merge branch 'develop' into doug/4479_media_size_selection
# Conflicts:
#	Riot/Managers/Settings/RiotSettings.swift
2021-09-06 17:04:22 +01:00
Stefan Ceriu
f2dd0e256b Revert "#4693 - Drop iOS 11 support."
This reverts commit a2b359f219.
2021-09-06 18:24:26 +03:00
Doug
55df9303de Fix potentially redundant table reloading. 2021-09-03 18:18:36 +01:00
Doug
434657ea6b Fix reactions beneath URL previews. 2021-09-03 12:07:29 +01:00
Doug
7db81ccf2a Break-up cell data after a link even if the new event isn't a message. 2021-09-03 11:52:57 +01:00
Doug
80f8cc6dac Hide the loading state on error. 2021-09-03 11:32:09 +01:00
Doug
be83d8e2f6 Fix edits to previewable links not working. 2021-09-03 11:21:07 +01:00
Doug
2e04123337 Add setting to disable URL previews.
Using a temporary position in the settings screen whilst waiting for feedback.
2021-09-03 10:19:26 +01:00
Doug
6a5b12ab8b Ensure correct font is used. 2021-09-02 18:08:35 +01:00
Doug
4924110f8e Merge remote-tracking branch 'origin/develop' into doug/888_add_url_previews 2021-09-02 17:39:42 +01:00
Doug
1831b61b12 Show an activity indicator until the preview has loaded. 2021-09-02 17:37:48 +01:00
Doug
9fb13b7c5a Update layout for text only previews. 2021-09-02 12:41:55 +01:00
Doug
042eb8e2ba Use stack views for layout. 2021-09-02 11:38:16 +01:00
David Langley
55c515fe4a Merge branch 'develop' of https://github.com/vector-im/element-ios into langleyd/4776_extract_swiftui 2021-09-02 10:14:11 +01:00
David Langley
43ad395e8d move full module and reorganize folders 2021-09-02 10:00:59 +01:00
Stefan Ceriu
c5e53d178e Moved converted voice messages to their own folder. Cleaning up all temporary files on reload and logout. 2021-09-01 17:08:07 +03:00
Stefan Ceriu
a786cbb90a #4693 - Drop iOS 11 support. 2021-09-01 15:55:41 +03:00
David Langley
790301ccb6 Finish extraction
- Moves SwiftUI code out of Riot and into RiotSwiftUI which has no dependency on Matrix SDK.
- Git wasn't smart enough to see the file moves. Most feature function has remain unchanged. 1 change I did make was remove NotificationSettingsViewModel's dependence on MxPushRule, so that the view model could be moved into RiotSwiftUI.
- Add LocaleProvider to abstract VectorL10n's use of Matrix SDK language so it can be used in RiotSwiftUI.
- Split Theme into UKit/SwiftUI version to remove RiotSwiftUI's dependence on ThemeService and ThemeV1.
- Migrated from ThemeObserver to ThemePublisher. We push updates to ThemePublisher so that we can remove ThemeService as dependency.
- Add .DS_Store to .gitignore
2021-09-01 12:34:38 +01:00
Doug
a81ebbd0aa 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
59e541667e 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
04c63d4e33 Merge branch 'develop' into doug/4479_media_size_selection
# Conflicts:
#	Riot/Assets/en.lproj/Vector.strings
2021-08-27 16:30:01 +01:00
Doug
99d66f0c0a Merge branch 'develop' into doug/4479_media_size_selection 2021-08-27 16:28:15 +01:00
David Langley
fb67c9d235 Extract and start to split theme. 2021-08-27 16:26:56 +01:00
David Langley
45540f1d4f
Merge pull request #4752 from vector-im/langleyd/4467_account_notification_settings
Account Notification Settings and Keywords
2021-08-26 11:07:11 +01:00
Stefan Ceriu
495ce11569 Fixes #4748 - Fixed cached callbacks race condition, serialized all async operations, properly cleaning up callbacks on failure. 2021-08-25 14:03:42 +03:00
Doug
5f598a918c Add comments about the un-sanitized URL. 2021-08-24 09:42:55 +01:00
Doug
29758d1aa7 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
ad1044cb9a Merge branch 'develop' into doug/4479_media_size_selection 2021-08-23 12:49:28 +01:00
Doug
b61135ffb7 Merge branch 'develop' into doug/4479_media_size_selection 2021-08-23 12:49:06 +01:00
Doug
fc75307c54 Combine confirm image/video size settings into one. 2021-08-23 11:16:32 +01:00
David Langley
d81f4ad23c
Merge pull request #4670 from vector-im/langleyd/4669_room_notification_settings_swiftui 2021-08-18 17:51:39 +01:00
Doug
22382e955b Merge branch 'develop' into doug/888_add_url_previews 2021-08-18 16:47:22 +01:00
Stefan Ceriu
f33dd76930 Fixes #4714 - Flickering voice message cells while being sent. 2021-08-18 14:58:32 +03:00
David Langley
26278f1556 indentation 2021-08-18 12:48:04 +01:00
David Langley
19ff75ddaf Fix imports and move logic to AvatarViewModel 2021-08-18 12:45:13 +01:00
David Langley
29b436f9a8 Add NotificationSettings and Keywords UI and VM 2021-08-18 09:33:56 +01:00
David Langley
48d69ba041 run template, add entrypoint and update BuildSetting 2021-08-17 15:00:20 +01:00
David Langley
666e8364c0 Move SwiftUI version of ViewModel to a subclass 2021-08-17 13:19:27 +01:00
David Langley
de33b607b0 Add activity indicator 2021-08-17 11:44:08 +01:00
Doug
661b53622d Merge branch 'develop' into doug/888_add_url_previews 2021-08-17 10:29:30 +01:00