Commit Graph

6572 Commits

Author SHA1 Message Date
Doug 1083516152 Move url preview setting under labs section. 2021-09-07 16:00:12 +01:00
Doug f604049083 Fix unsatisfiable constraints messages. 2021-09-07 14:49:51 +01:00
Doug babbdff05a 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 e04bbb776d Add MediaCompressionHelper.defaultCompressionMode for use in RoomViewController. 2021-09-07 14:46:02 +01:00
Doug f2da5aa470 Add comments. 2021-09-06 18:15:55 +01:00
David Langley 17c6ce6a10 Add Simple Template Example
- Add a simple Template example that shows a user profile with avatar, displayName and presence.
- ScreenCoordinator: closure based with less protocols and delegates.
- Reducer: Reducer function that manages all state modifications.
- SwiftUI View: Decomposes UI into appropriate sub components.
- Uses Theme and Dependency Management Infrastructure
2021-09-06 17:12:31 +01:00
Doug 4df44daf37 Remove unnecessary defaults registration. 2021-09-06 17:10:59 +01:00
Doug c02032d0cf Use a property wrapper for showMediaCompressionPrompt setting. 2021-09-06 17:08:23 +01:00
Doug f6fdb42ff3 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 d7f3177d87 #4693 - Mark iOS 11 as dropped in the verions check coordinator (last supported release). 2021-09-06 18:24:26 +03:00
Stefan Ceriu 7d6a1cac40 Revert "#4693 - Drop iOS 11 support."
This reverts commit a2b359f21960e1b9f75139d94adc7aeb35fa479f.
2021-09-06 18:24:26 +03:00
Gil Eluard 110ad39c6e [Spaces] M10.6 Space preview bottom sheet #4497
- Localized strings for space join rule
2021-09-06 08:47:43 +03:00
Gil Eluard 53c3cd7fc6 [Spaces] M10.6 Space preview bottom sheet #4497 2021-09-06 07:46:43 +03:00
Doug 042fa4197d Fix potentially redundant table reloading. 2021-09-03 18:18:36 +01:00
Doug 1781258416 Clear the URL preview manager's store when clearing caches. 2021-09-03 12:12:44 +01:00
Doug 891c901599 Fix reactions beneath URL previews. 2021-09-03 12:07:29 +01:00
Doug 8592a36ec6 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 caf0a5264d Hide the loading state on error. 2021-09-03 11:32:09 +01:00
Doug ebb9fd1566 Fix edits to previewable links not working. 2021-09-03 11:21:07 +01:00
Doug ef65feb3de 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 8f8322a94c Ensure correct font is used. 2021-09-02 18:08:35 +01:00
Doug f8bc972ff8 Merge remote-tracking branch 'origin/develop' into doug/888_add_url_previews 2021-09-02 17:39:42 +01:00
Doug 26e356776c Show an activity indicator until the preview has loaded. 2021-09-02 17:37:48 +01:00
David Langley 7093f407f7 Move complete room notification settings module to RiotSwiftUI and fix naming/directory structure. 2021-09-02 14:09:29 +01:00
Doug 3db5d7f605 Update layout for text only previews. 2021-09-02 12:41:55 +01:00
Doug 0491195401 Use stack views for layout. 2021-09-02 11:38:16 +01:00
David Langley 823e526bec 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 883136252b move full module and reorganize folders 2021-09-02 10:00:59 +01:00
Gil Eluard 665e5726ca [Spaces] M10.8 Browsing users in a space #4682
- Update after design review
2021-09-02 11:24:07 +03:00
Gil Eluard 15da1e4ff8 [Spaces] M10.8 Browsing users in a space #4682
- Update after design review
2021-09-02 10:17:09 +03:00
Gil Eluard 6aa9f0f5c7 [Spaces] M10.8 Browsing users in a space #4682
- Renamed coordinators
2021-09-02 09:34:25 +03:00
Gil Eluard 8bf8b5d99e Merge branch 'gil/4571_explore_rooms' into gil/4682_browsing_users_in_a_space
# Conflicts:
#	Riot/Modules/SideMenu/SideMenuCoordinator.swift
2021-09-02 07:51:55 +03:00
Gil Eluard 26b4344fe1 [Spaces] M10.7 Explore rooms #4571
- Update after review
2021-09-01 18:12:08 +03:00
Stefan Ceriu fc3dd7c216 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 2a34c63a30 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 ef3fb0433e #4693 - Drop iOS 11 support. 2021-09-01 15:55:41 +03:00
ismailgulek 4ffc1eecf8 Use publicRoom instance instead of just room id to use canonical alias 2021-09-01 15:29:52 +03:00
David Langley 862f30102f 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 f93b96fa50 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 cd87095453 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 9ed36b1690 Fixes #4449 - Clipped home view on search. 2021-08-31 11:03:26 +03:00
Stefan Ceriu a331233cf3 Using a property wrapper for UserDefaults backed application settings (RiotSettings). 2021-08-30 11:02:06 +03:00
Doug 69e98ce572 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 1408095129 Merge branch 'develop' into doug/4479_media_size_selection 2021-08-27 16:28:15 +01:00
David Langley 087f848ec5 Extract and start to split theme. 2021-08-27 16:26:56 +01:00
Doug 240a5e8f5f Update media settings strings. Update share extension image size prompt. 2021-08-27 16:15:46 +01:00
Stefan Ceriu 3600d41611 Fixes #4746 - It is very easy to make duplicate rooms 2021-08-26 17:48:24 +03:00
David Langley db4a55724f 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 319a4fde18 Set true as default state for notification settings. Only matters for keywords. 2021-08-26 12:13:17 +01:00
SBiOSoftWhare 9eeb685836 Merge pull request #4758 from RiotTranslateBot/weblate-riot-ios-riot-ios-dialogs
Translations update from Weblate
2021-08-26 12:25:14 +02:00