Commit graph

2439 commits

Author SHA1 Message Date
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
David Langley
e984457941 Move complete room notification settings module to RiotSwiftUI and fix naming/directory structure. 2021-09-02 14:09:29 +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
ismailgulek
dc3c91de31
Merge pull request #4779 from vector-im/ismail/4778_join_public_room
Fix joining public rooms
2021-09-01 16:21:44 +03:00
Stefan Ceriu
a786cbb90a #4693 - Drop iOS 11 support. 2021-09-01 15:55:41 +03:00
ismailgulek
b7fb14ed81
Use publicRoom instance instead of just room id to use canonical alias 2021-09-01 15:29:52 +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
Stefan Ceriu
dacaa891a0 Fixes #4449 - Clipped home view on search. 2021-08-31 11:03:26 +03:00
David Langley
fb67c9d235 Extract and start to split theme. 2021-08-27 16:26:56 +01:00
Stefan Ceriu
3291266a35 Fixes #4746 - It is very easy to make duplicate rooms 2021-08-26 17:48:24 +03:00
David Langley
cb69f48f5d
Merge pull request #4760 from vector-im/langleyd/4467_account_notification_settings
Fix Default State of Keyword Notification Setting
2021-08-26 13:16:56 +01:00
David Langley
2725255f8f Set true as default state for notification settings. Only matters for keywords. 2021-08-26 12:13:17 +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
David Langley
31e61dfa14 multiline comments 2021-08-25 19:28:19 +01:00
David Langley
f4d51d4648 Add ViewFrameReader 2021-08-25 19:24:33 +01:00
David Langley
8062d46eda Remove 'OrderedSet' 2021-08-25 16:53:15 +01:00
David Langley
93dcb25733 Address comments and cleanup version checks 2021-08-25 15:46:02 +01:00
David Langley
caa5c89c6f Improve comments and correct iOS version check logic. 2021-08-25 15:17:05 +01:00
David Langley
b064551b87 Add comments for flow layout. 2021-08-25 14:49:17 +01:00
David Langley
dcaed769a9 Remove unneeded delegate methods 2021-08-25 14:38:04 +01:00
David Langley
4f302d64a1 typos 2021-08-25 14:32:34 +01:00
David Langley
5c4f8b9d53 Fix build error in BorderedInputFieldStyle 2021-08-25 14:21:43 +01:00
David Langley
1c68bbcc55 Fix chip text color in dark theme and add towncrier 2021-08-25 14:13:04 +01:00
David Langley
b87d879c22 Add Chips, InputStyles, Service Implementation, swift-collections and UI cleanup. 2021-08-25 13:03:36 +01:00
Stefan Ceriu
8ad7fc282c #4693 - Fixed minimum supported version. 2021-08-25 14:26:39 +03: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
Stefan Ceriu
ff405f6b13 #4693 - Updates following code review. 2021-08-25 13:57:32 +03:00
Stefan Ceriu
4322f7dcf5 Implements #4693 - Alert users of Element on iOS11 deprecation. 2021-08-25 13:57:32 +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
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
David Langley
cbf6410567 Fix problem showing error message on completion 2021-08-18 15:12:12 +01:00
Stefan Ceriu
f33dd76930 Fixes #4714 - Flickering voice message cells while being sent. 2021-08-18 14:58:32 +03:00
David Langley
d7030bc907 Merge branch 'langleyd/4669_room_notification_settings_swiftui' of https://github.com/vector-im/element-ios into langleyd/4669_room_notification_settings_swiftui 2021-08-18 12:48:50 +01:00
David Langley
26278f1556 indentation 2021-08-18 12:48:04 +01:00
David Langley
f6ac4ca768
Update Riot/Modules/Common/SwiftUI/Inject.swift
Co-authored-by: Doug <6060466+pixlwave@users.noreply.github.com>
2021-08-18 12:46:41 +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
62d340ac6b
Update Riot/Modules/Common/SwiftUI/DependencyContainerKey.swift
Co-authored-by: manuroe <manuroe@users.noreply.github.com>
2021-08-18 09:23:18 +01:00