Commit Graph

1462 Commits

Author SHA1 Message Date
Doug
0478fe3052 Add Event Routes to the flows (#2743) 2024-04-25 12:50:06 +01:00
Stefan Ceriu
18081fbe48 Remove join room screen graphic and align platforms 2024-04-24 17:26:10 +03:00
Stefan Ceriu
4e52940fe6 Revert "Attempted fix for #2653 - Reset the TextView delegates on every update call"
This reverts commit 9b9deb7dcd7c28c4171912ebb68375c1ecec9a11.
2024-04-24 11:29:54 +03:00
Stefan Ceriu
e5538255cb dd support for deeplinking/navigating into the same room multiple times
- fix bugs around the view <-> view models going out of sync
- unwind the stack if the room is already presented
2024-04-24 11:29:54 +03:00
Stefan Ceriu
34989a9275 Attempted fix for #2653 - Reset the TextView delegates on every update call 2024-04-23 13:23:11 +03:00
Stefan Ceriu
6d466435f3 Fix #2652 - Room list looping and fighting scrolling after filtering
- also fixes filtering empty state vertical centering
2024-04-23 12:18:00 +03:00
Stefan Ceriu
e0a40caeaf Fix broken iPhone room push animation after disabling root fading for the iPad 2024-04-23 10:36:52 +03:00
Stefan Ceriu
b531ec0f91 Handle alias room permalinks 2024-04-23 08:01:30 +03:00
Stefan Ceriu
66a36a76bf Cleanup following the AppMediator introduction (#2723)
- stop using multiple background task, the appCoordinator sync one is enough for the whole app
- move the AppMeditor to the MainActor
- expose the WindowManager through the AppMediator
- hide sensitive WindowManager API behind a different protocol
- remove the now unnecessary `BackgroundTaskService`
2024-04-22 18:10:24 +03:00
Doug
b0db1f67e1 Update strings with API breaks. (#2720) 2024-04-22 10:52:29 +01:00
Stefan Ceriu
0217a37ba8 Setup animations for navigation root and split detail and sidebar module changes. 2024-04-22 10:17:13 +03:00
Stefan Ceriu
ca0597252f Fixes #2707 - Prevent the app from locking while recording a voice message 2024-04-20 15:38:58 +03:00
Stefan Ceriu
018d1b0e19 Membership aware room routes (#2709)
* Remove the invites button when room list invites are enabled

* element-hq/element-x-ios/issues/2632 - Handle room permalinks based on their membership state and show the according room joining screens:
- modify the room flow coordinator to only take a roomID and be able to decide its own room flows (especially for unjoined rooms)
- add support for the new room preview API
- have RoomDirectorySearch go through the same paths
2024-04-19 17:04:18 +03:00
Stefan Ceriu
f3d9219a39 Introduce an AppMediator which will:
- combine multiple services to handle app wide requests
- remove direct UIApplication access from everywhere
- fix #2703 by combining UIApplication.applicationState with the WindowManager's main window appearance
- leave the door open for more app control in the future (especiall for the mac)
2024-04-19 15:43:56 +03:00
Doug
15b4cbf65d Add missing image provider to RoomChangeRolesScreenViewModel. (#2715)
* Add an assertion for a missing image provider.

* Pass an image provider to RoomChangeRolesScreenViewModel.

* Update snapshots.
2024-04-19 11:56:41 +01:00
Stefan Ceriu
1d0b1856bc Guard against rooms prematurely unsubscribing from sliding sync:
- with the advent of permalinks the same room can be now pushed multiple times onto the stack which means multiple calls to `subscribeForUpdates`
- the reverse doesn't hold and one call to `unsubscribeFromUpdates` will unsubscribe all the rooms at the same time
- we guard against that by tracking the number of subscriptions and calling the underlying `roomListItem.unsubscribe()` when the count goes back to zero
2024-04-19 11:14:48 +03:00
Stefan Ceriu
19b0e09899 Bump the RustSDK to v1.1.59, regenerated the SDK mocks 2024-04-18 15:01:31 +03:00
Stefan Ceriu
cb506ac970 Fix broken cancel button on the enter recovery key screen
- regressed in https://github.com/element-hq/element-x-ios/pull/2648/files#diff-4420a80fe4e4d99cac174f0dcf86413535a34bd6dc303670d11bca25105d1ae6L55
2024-04-17 16:28:24 +03:00
Stefan Ceriu
b7d98a1415 With date separators not longer duplicated switch back to using their timestamps (formatted even) as stable identifiers 2024-04-16 19:27:45 +03:00
Stefan Ceriu
3214106909 element-hq/element-x-ios/issues/2636 - Expose paths for focusing replied-to timeline items by tapping on an in-reply-to message bubble 2024-04-16 15:01:48 +03:00
Stefan Ceriu
ae76bf8eca Bring back the original native MessageComposerTextField, use it whe… (#2696)
* Bring back the original native `MessageComposerTextField`, use it when the Rich Text Editor one is disabled (advanced settings)
- this basically reverts parts of https://github.com/element-hq/element-x-ios/pull/1703
2024-04-15 15:41:34 +00:00
Doug
cb52eb90bc Handle external links to a user. (#2690) 2024-04-15 11:08:00 +01:00
Doug
a62d1d6e48 Always encrypt the db for new users. (#2692) 2024-04-12 18:00:49 +01:00
Stefan Ceriu
4b4c43ba06 Stop relying on the NotificationCenter for removing delivered push notifications:
- this will improve the architecture but more importantly will remove some very flakey unit tests
2024-04-12 19:18:00 +03:00
Stefan Ceriu
44e1d234a4 Remove now unused room and event matrix entity regexes 2024-04-12 18:04:41 +03:00
Stefan Ceriu
8be236883d Adop the new SDK permalink detector and user builder 2024-04-12 18:04:41 +03:00
Doug
54c0ed0816 Initial implementation of the JoinRoomScreen. (#2684)
* Update Compound and use super button for room directory.
2024-04-12 13:13:22 +01:00
Doug
25e94d9d7f Fix a bug where the view state is being modified during an update. (#2686) 2024-04-12 10:45:29 +01:00
Mauro
46d5057f8e QR Code, verification code views (#2685) 2024-04-12 09:29:14 +00:00
Doug
ac4784d6da Add a UserProfileScreen for profiles of non-members. (#2687) 2024-04-12 09:54:14 +01:00
Mauro
392019c61c QR Code error views (#2678)
Co-authored-by: Doug <douglase@element.io>
2024-04-11 08:32:56 +00:00
Doug
37a8c8988b Update strings and add productionAppName value for the new placeholder. (#2677)
* Update strings and add productionAppName value for the new placeholder.

* Fix snapshots.

* Fix more snapshots.
2024-04-10 16:58:00 +01:00
Stefan Ceriu
c6a4caf493 Attempt to improve unit test reliability:
- synchronize mock properties on the main queue
- sleep for longer when processing routes
- finish encoding before deallocating the keyed archiver
- wait for NotificationCenter notifications to be delivered
- change were we process remote notification permissions
2024-04-10 17:40:47 +03:00
Doug
c03db40859 Add more flexible background support to FullscreenDialog (#2675)
Hide the background when the main content extends underneath the bottom content.
2024-04-10 14:56:41 +01:00
Mauro
9c59039789 QR Code scan view (#2674) 2024-04-10 10:47:23 +00:00
Stefan Ceriu
b4f653d6d8 element-hq/element-x-ios/issues/2670 - Show invites as part of the room list 2024-04-09 18:18:11 +03:00
Doug
32ab65a10f Final design for pending members when changing roles. (#2668)
* Final design for pending users when changing role.

* Remove room moderation feature flag.

* Fix tests.

* Run periphery.

* Update snapshots.
2024-04-09 12:00:11 +01:00
Mauro
86c155e767 QR Code Login Initial view state (#2667) 2024-04-09 12:21:14 +02:00
Doug
0ff1c123aa Fix child presentation of the same room. (#2669) 2024-04-09 11:11:14 +01:00
Doug
aa15452d5d Tweak internal/external deeplink handling (#2664)
* Add a childRoom AppRoute.

* Add a tests for child room routes.
2024-04-08 16:44:03 +01:00
Stefan Ceriu
617f0f155c Fixes ELEMENT-97277 - Be less aggressive on recovery key states 2024-04-08 18:30:16 +03:00
Stefan Ceriu
a28f417202 Tone down new onboarding flow recovery fatal error after a lot of crash reports on sentry 2024-04-08 18:30:16 +03:00
Stefan Ceriu
47841d25ff element-hq/element-x-ios/issues/2395 - Slightly tweak the unread invites logic, add more logs 2024-04-08 14:56:02 +03:00
Stefan Ceriu
a36cf11029 Small recently visited room tweaks following PR review 2024-04-08 14:56:02 +03:00
Velin92
ac9716957b Translations update 2024-04-08 08:04:11 +03:00
Doug
c4c8716da2 Update appearance of admins when changing moderators. (#2654) 2024-04-05 12:19:46 +01:00
Mauro
4c47d5277e Reset Recovery Key Screen (#2648)
Co-authored-by: Doug <6060466+pixlwave@users.noreply.github.com>
2024-04-04 16:14:22 +00:00
Stefan Ceriu
0cfca0ad3a Fixes #2624, fixes #2625 - Add user suggestions in the create room flows. 2024-04-04 16:45:10 +03:00
Stefan Ceriu
77e28df1a8 Cleanup proxy errors
- proxy errors have been getting repetitive and not particularly useful
- differentiate between sdk and client errors and keep what provides value
- add error logs everywhere a failure occurs
2024-04-04 14:22:56 +03:00
Doug
7aba0216bc Allow RoomFlowCoordinator to start a child flow. (#2644) 2024-04-04 11:30:38 +01:00