Commit Graph

2077 Commits

Author SHA1 Message Date
Mauro
aa9aec7d07 Bottom Sheet to confirm DM creation (#3739)
* created the view to hold the bottom sheet

* added the sheet to the start chat screen

* switched the alert with the bottom sheet

in the room member details

* add a small delay to not always show the loader

* suggested PR changes

* pr suggestions and updated tests
2025-02-05 12:28:00 +00:00
Mauro
63d059b342 updated the SDK (#3737) 2025-02-04 16:57:39 +00:00
Stefan Ceriu
437d16792d Add back verbose logging for the timeline provider to help debug the event cache and lazy loading. 2025-02-04 15:29:41 +02:00
Doug
61ca5c35f7 Refactor Rust timeline identifiers into our own. (#3731)
* Refactor eventOrTransactionID.

* Refactor uniqueID.
2025-02-04 09:50:46 +00:00
Stefan Ceriu
fade5f0760 Switch the ElementCall UI test to call.element.io for stability 2025-02-04 11:17:17 +02:00
Mauro
c7d51719ad some iOS bugfixes (#3732)
Co-authored-by: Element CI <ci@element.io>
2025-02-04 01:15:31 +01:00
Element CI
472f765f72 pr suggestions 2025-02-03 16:44:12 +01:00
Element CI
4266c92e42 added a small delay in the loading 2025-02-03 16:44:12 +01:00
Element CI
b9b6e7b791 added an alert before creating a new DM 2025-02-03 16:44:12 +01:00
Doug
4312a604c1 RoomTimeline… refactor (drop the Room). (#3728)
* Add the timeline controller factory to the timeline view model.

In preparation for building a timeline to swipe through media in QuickLook.

* Refactor RoomTimelineControllerFactory.

* Refactor RoomTimelineController.

* Refactor RoomTimelineProvider.
2025-02-03 14:14:01 +00:00
Stefan Ceriu
494e4f9b1f Fix flakey room member details screen snapshot test
- needs to wait for the call button to appear i.e. dmRoomID
2025-02-03 12:41:24 +02:00
ElementRobot
ea0e679e28 Translations update (#3727) 2025-02-03 08:47:29 +00:00
Doug
259731b805 Revert back to UIKit for the presentation of the timeline media preview. (#3719)
* Revert back to UIKit for the presentation of the timeline media preview.

* Fix a presentation issue where the media is clipped until the animation finishes.

* Workaround for the preview controller replacing the info button when swiping.

* Use a self-sizing detent on the media info sheet.
2025-01-31 17:28:14 +00:00
Doug
339b286127 Fix missing user ID. (#3725) 2025-01-31 16:59:06 +00:00
Element CI
c5e9ccb433 updated the notification string 2025-01-31 17:28:25 +01:00
Stefan Ceriu
e8777c1625 Ensure multiple mandatory verification flows can be ran consecutively (e.g. following encryption resets) (#3722)
* Ensure multiple mandatory verification flows can be ran consecutively (e.g. following encryption resets)

* Disabled the back button on the verification screen only when verified and waiting for the security state publisher
2025-01-31 17:31:21 +02:00
Mauro
10590c597f Do not handle offline mode yet (#3715)
* do not handle offline mode yet

* fix brew

* updated sdk
2025-01-31 11:23:38 +00:00
Doug
6b166178ac Detect the timeline start/end when swiping through media files. (#3714) 2025-01-29 15:07:23 +00:00
Stefan Ceriu
7d6ccc5d9e Bump the RustSDK to 25.01.27, adopt the new emoji boosting API. (#3708)
* Bump the RustSDK to v27.01.22, adopt the new emoji boosting API.

* SDK version 25.01.22 😅

---------

Co-authored-by: Doug <douglase@element.io>
2025-01-27 17:49:44 +00:00
ElementRobot
f546cf4934 Translations update (#3709)
Co-authored-by: Velin92 <34335419+Velin92@users.noreply.github.com>
2025-01-27 17:37:24 +00:00
Doug
76a5963a34 Media Browser: Listen to the timeline in the preview screen (#3707)
* Listen to the timeline to load more items in the media preview screen.

* Fix the view model tests.

* Fix tests
2025-01-27 16:22:49 +00:00
Doug
8a1da866fe Remove unused/redundant assets. (#3702)
* Remove unused image assets.

* Remove unused/redundant colour assets.
2025-01-27 11:44:39 +00:00
Doug
d88d7e696f Show a blank topic as removed. (#3706) 2025-01-27 11:44:21 +00:00
ElementRobot
9976b2bc05 Translations update (#3704)
* Translations update

* Update snapshots
2025-01-27 10:12:39 +00:00
Doug
96be448c8c Make sure the Recovery Key option is shown on the IdentityConfirmationScreen when available. (#3699)
There was a race condition where 2 different states could be processed at the same time.

* Fix unit test
The view model wasn't stored, so relying the current value publisher didn't have time to fire before deinit.
2025-01-23 12:39:53 +00:00
Stefan Ceriu
220e8c2ef5 Bump the RustSDK to v25.01.22 and use the new timeline building API 2025-01-23 08:55:00 +02:00
Mauro
f39206561a Better handling for editing alias in case of different HS (#3695)
* better handling for aliases from different HS

* insert the alias at the top

* removing the old homeserver alias

* code improvement

* always remove the old canonical alias found on the server if exists

* added extensive testing for all the

possible cases on how the save is handled given the various context of the existing room alias
2025-01-22 17:33:43 +00:00
Mauro
998739308a DM Design Tweaks (#3693)
* dm design tweaks

* adding equatable conformance

* topic will now be shown in DMs

* code suggestion

* updated details

* better check

* code improvement
2025-01-22 13:32:39 +00:00
Doug
082480aa28 Add MXLog.dev for faster print debugging. (#3694)
* Add MXLog.dev for easier print debugging.

* Remove the unused context parameter on MXLog.
2025-01-22 09:18:12 +00:00
Doug
bcf0271886 Media browser tweaks (#3692)
* Move the media actions from the bottom bar into the details sheet.

* Allow the media type picker to fill the width of the screen.
2025-01-21 17:00:04 +00:00
Mauro
59bd1f1831 Possible fix for the join room screen not updating (#3690)
* possible fix

* comment improved

* better fix
2025-01-21 13:48:43 +00:00
Stefan Ceriu
b474c9efe3 Refactor the JoinRoom screen to take advantage of newer APIs and support more joinRule/membership combinations (i.e. invite required, restricted, banned) (#3685)
- expose the full RoomPreview and RoomMembershipDetails through their own proxies
- implement standard mocks for all the different combinations
- converge on a single room info provider
- rebuild all the previews
- prioritise the preview data over the room one.
2025-01-20 19:07:11 +02:00
Valere
9fe7b3e266 Warn and block sending on verification violation (#3679)
* feat(crypto): Warn and block sending on verification violation

* fixup: Fix ComposerToolbar previews

* fixup! add ComposerToolBarViewModelTests for canSend

* add new preview tests for verification violations

* Use `deferFulfillment`s in the unit tests.

---------

Co-authored-by: Stefan Ceriu <stefanc@matrix.org>
2025-01-20 18:29:34 +02:00
Stefan Ceriu
49070573d4 Improve how alias settings are handled, add unit tests (#3686) 2025-01-20 15:43:47 +02:00
Stefan Ceriu
307cd51db4 Fix flakey RoomMemberDetailsScreen preview test.
- was missing sometimes missing the call button because we weren't waiting for the `dmRoomID` resolution
2025-01-20 12:11:32 +02:00
ElementRobot
32c3d79de9 Translations update (#3687)
Co-authored-by: pixlwave <6060466+pixlwave@users.noreply.github.com>
2025-01-20 09:47:10 +00:00
Stefan Ceriu
9bb462c744 Support double-length pseudlanguage in fallback translations and update snapshots for en-us. 2025-01-15 14:59:54 +02:00
Stefan Ceriu
346b36e5ba Bump the RustSDK to v25.01.15 and fix (most) concurrency sendability warnings in the generated mocks. 2025-01-15 14:59:54 +02:00
Mauro
79332cb30a Security and privacy part 2 (#3637)
* handling the history visibility flag

* better logic to handle visibility

* better handling of the visibility options state

* added some copies, and the public room directory

visibility state

* completed the UI

added also the preview tests

* improved the handling of the directory visibility

* added the space users case

and improved handling of the access -> vsibility reaction. Also added a simple error handling for the public directory toggle

* added the edit room address view

but is missing its full implementation

* implement the UI for the edit room address screen

* implemented error checking

when editing the address

* updated preview tests and improved code

* typo fix

* Fix various issues after rebasing.

* Fix build errors and broken snapshot tests

* Adopt latest room privacy and canonical alias setting APIs

* Add support for creating and editing the room's alias.

* Add support for saving room privacy setting changes.

* Fix room alias screen snapshot tests following recent changes.

---------

Co-authored-by: Stefan Ceriu <stefanc@matrix.org>
2025-01-15 11:50:08 +02:00
pixlwave
faa64cf16c Translations update 2025-01-13 08:24:32 +02:00
Stefan Ceriu
c55f5e1e45 Bump the SDK to v25.01.10-2, fix breaking API changes around sending media and mentions 2025-01-10 19:09:52 +02:00
Stefan Ceriu
7a4534680f Move tracing configuration to the rust side. 2025-01-10 19:09:52 +02:00
Stefan Ceriu
d5542c2526 Simplify how to we handle background task expirations. (#3670) 2025-01-10 16:43:39 +02:00
Doug
52db2b9f1d Add the event cache to the Rust tracing configuration. (#3662) 2025-01-06 12:58:41 +00:00
Doug
180d622353 Ignore Compound and RTE from license acknowledgements. (#3661)
These all come from element-hq so aren't third-party licenses to us.
2025-01-06 11:36:20 +00:00
ElementRobot
7376e3cc01 Translations update (#3649)
* Translations update

* Fix build errors.

---------

Co-authored-by: pixlwave <6060466+pixlwave@users.noreply.github.com>
Co-authored-by: Doug <douglase@element.io>
2025-01-06 10:51:02 +00:00
manuroe
c29f4cc9b4 Dual licensing: AGPL + Element Commercial (#3657)
* New LICENSE-COMMERCIAL file

* Apply dual licenses: AGPL + Element Commercial to file headers

* Update README with dual licensing
2025-01-06 11:27:37 +01:00
Doug
25f353e2af Design tweaks. (#3645)
* Update the background colour of the VisualList component.

* Update the recovery key field to match the designs.
2024-12-20 14:13:23 +00:00
Doug
a9fe7d287e Fix the overlapping scrollbars on macOS. (#3646) 2024-12-20 13:54:41 +00:00
Stefan Ceriu
87169d9db5 Retrofit deferFulfillment onto snapshot tests. (#3641)
* Retrofit `deferFulfillment` onto snapshot tests.

* Convert a bunch of preview tests to the new fulfillment publisher

* Convert more tests

* Remove unneeded delays from the remaining tests

* Remove snapshotting delay option.
2024-12-20 15:30:59 +02:00