Commit Graph

2471 Commits

Author SHA1 Message Date
Jorge Martin Espinosa
6257425344 Bump Rust SDK to v0.2.18 and bump app version (#2836)
* Adapt to changes in SDK:
    - Remove name from MatrixRoom, we should use displayName instead.
    - Remove separate invites room list.
    - Added runBlocking to get the now async NotificationClient from the Rust SDK.
    - Made some other functions suspend.
    - Client.resolveRoomAlias now returns a roomId and via parameters, we pass the roomId.

* Add logs removal migration again as `AppMigration03` to make sure we don't leak private data in existing logs.

* Bump app version to `0.4.12`
2024-05-13 16:48:23 +02:00
Jorge Martin Espinosa
04e6f66a02 Make logs less verbose, especially for sliding sync (#2825)
* Make logs less verbose, especially for sliding sync.

Use the same config as iOS for most targets.

* Make sure we don't try to upload logs that are larger than the max request size of the bug reporter server.

* Display the loading state as soon as the bug reporter starts processing the log files

* Add changelog
2024-05-09 16:39:59 +02:00
Jorge Martin Espinosa
e1694fa4e8 Add room badges (#2822)
* Add room badges

* Remove no longer used `onShareRoomMember` callback

* Update screenshots

* Add changelog

---------

Co-authored-by: ElementBot <benoitm+elementbot@element.io>
2024-05-09 08:38:40 +02:00
Jorge Martin Espinosa
2e93d842c7 UX cleanup: DM details screen (#2820)
* UX cleanup: user profile.

- Move send DM to a CTA button.
- Add 'Call' CTA button too when there is a DM with that user and a call is possible.
- Add missing tests.

* Update screenshots

* Add tests for clicking on the avatar

---------

Co-authored-by: ElementBot <benoitm+elementbot@element.io>
2024-05-08 16:05:02 +02:00
Jorge Martin Espinosa
b524645b89 UX cleanup: room details (#2816)
* UX cleanup: room details screen

Add new CTA buttons for Invite and Call actions

* Update screenshots

* Fix maestro

---------

Co-authored-by: ElementBot <benoitm+elementbot@element.io>
2024-05-08 11:42:33 +02:00
Jorge Martin Espinosa
9aadec8435 Enforce mandatory session verification only for new logins (#2811)
* Enforce mandatory session verification only for new logins

- Creates `AppMigration` base interface as a way to isolate migration logic, app migrations must implement this interface.
- Creates `AppMigration01` with the existing logs removal migration and `AppMigration02` with the logic to allow existing sessions to skip verification.
- Add `DefaultSessionPreferencesStoreFactory.remove(sessionId)` to allow a ephemeral session store access to exist outside the `SessionScope` for this new migration.

* Fix tests

* Add more tests.

This also includes creating several abstractions.

* Review changes.

- Make `orderedMigrations` a class property, `migrations` just a constructor parameter to avoid incorrect usages.
- Create `lastMigration` property too, use it instead of `MIGRATION_VERSION`.
2024-05-07 14:06:34 +00:00
Valere
0359504fa9 Merge pull request #2806 from element-hq/feature/valere/report_crypto_status_analytics
Add support for Verification state analytics
2024-05-07 14:38:04 +02:00
Valere
94bbcbf503 Code review - more tests 2024-05-07 09:38:26 +02:00
Benoit Marty
96c8786626 Merge pull request #2797 from element-hq/sync-localazy
Sync Strings
2024-05-06 17:23:42 +02:00
bmarty
d2eb0d9820 Sync Strings from Localazy 2024-05-06 00:19:35 +00:00
Jorge Martín
991c00cb3e Use GoogleApiAvailabilityLight instead of GoogleApiAvailability 2024-05-03 17:13:07 +02:00
Benoit Marty
b156097e1a Add support for link generated by matrix.to website. 2024-05-03 11:57:22 +02:00
Benoit Marty
66cfaf97c9 Open user profile and room with event from permalink 2024-05-02 12:25:21 +02:00
Benoit Marty
08765691d2 Period 2024-05-01 19:35:16 +02:00
Benoit Marty
981c19ab33 Fix navigation issue #2778 2024-05-01 13:50:53 +02:00
Jorge Martin Espinosa
2559d26dc0 Adjust typography in SelectedUser component (#2768)
* Adjust typography in `SelectedUser` component

* Set 2 max lines for `SelectedUser` component.

Also update the theme token references.

* Update screenshots

---------

Co-authored-by: ElementBot <benoitm+elementbot@element.io>
2024-04-30 09:21:39 +00:00
Benoit Marty
f5060defa1 Merge pull request #2754 from element-hq/feature/valere/expected_utd_integration
Expected UTDs due to membership support
2024-04-30 11:03:36 +02:00
Benoit Marty
51d87a8309 Merge pull request #2759 from element-hq/feature/fga/permalink_timeline
Permalink timeline
2024-04-30 10:58:33 +02:00
Valere
37fee97c65 test for utd cause 2024-04-30 09:30:05 +02:00
Benoit Marty
c89f4d1596 Fix issue when retrieving Event detail. The wrong method was used. 2024-04-29 17:55:45 +02:00
Benoit Marty
2e2d1277e8 Map all replyTo data and add preview for loading and erorr case. 2024-04-29 17:41:25 +02:00
Benoit Marty
6b8552fac1 Ensure editMessage, enterSpecialMode and replyMessage are called on the current timeline. 2024-04-29 15:50:56 +02:00
Benoit Marty
16bdd34a80 Add log in case of error. 2024-04-29 15:48:58 +02:00
Benoit Marty
ee0a198c4c Remove unnecessary default value. 2024-04-29 14:28:04 +02:00
Benoit Marty
d42a96cc63 No need to keep innerTimeline as a class member. 2024-04-29 14:27:07 +02:00
Benoit Marty
48e9b780b1 Code optimization. 2024-04-29 14:20:46 +02:00
Benoit Marty
c75995f925 Add documentation on new API. 2024-04-29 14:16:12 +02:00
bmarty
7383ac6678 Sync Strings from Localazy 2024-04-29 00:18:59 +00:00
Benoit Marty
16f0d9d446 Test TimelineController 2024-04-26 18:27:10 +02:00
Valere
808bbf33a4 Expected UTDs due to membership support 2024-04-26 17:21:10 +02:00
Benoit Marty
7b55b0e327 Add mapping on FocusEventException.
Extract FocusRequestState to its own file and add preview.
2024-04-26 16:40:09 +02:00
Benoit Marty
9b4fa0f03d Fix detekt issues 2024-04-26 15:23:24 +02:00
Benoit Marty
471eb2cadc Move LiveTimelineProvider to the test module. 2024-04-26 14:47:01 +02:00
Benoit Marty
1f0b711355 Add missing color preview. 2024-04-26 14:30:51 +02:00
Benoit Marty
21ddeb00fe Format and cleanup files 2024-04-26 13:57:08 +02:00
Benoit Marty
d20605b8be Fix compilation issue (develop has been merged here) 2024-04-26 12:55:08 +02:00
Benoit Marty
a11bfb5d29 Merge branch 'develop' into feature/fga/permalink_timeline 2024-04-26 12:50:38 +02:00
Benoit Marty
9f2e8d44ce Let the SDK manage the file log cleanup, and keep one week of log. 2024-04-26 12:33:20 +02:00
Benoit Marty
60b8761a4a Fix test on UtdTrackerTest 2024-04-26 09:22:08 +02:00
Benoit Marty
4897552e2d Fix false positive
A single Unit expression is unnecessary and can safely be removed. [OptionalUnit]
2024-04-26 09:17:22 +02:00
Benoit Marty
6f2507f517 SDK 0.2.16: fix compilation issue 2024-04-26 09:11:30 +02:00
ganfra
345d4c7da3 Timeline : try to get better forward pagination. 2024-04-25 23:34:04 +02:00
Benoit Marty
2b121d97ac Remove flag RoomListFilters.
This is also fixing the filter reset issue when going back to the room list.
2024-04-25 15:55:29 +02:00
Jorge Martin Espinosa
fe9b3f7cdb Always display 'lost recovery key?' option (#2745)
* Always display 'lost recovery key?' option

* Use `isLastDevice` it to display only 'enter recovery key' option for verification.

* Update strings. This should fix the wrong term 'passcode' being used in the recovery key screen title.

* Disable 'lost your recovery key?' button while the screen is in a loading state

* Update screenshots

---------

Co-authored-by: ElementBot <benoitm+elementbot@element.io>
2024-04-25 15:28:24 +02:00
ganfra
7b07adc5ab Timeline : do not cancel pagination to avoid stuck timeline. 2024-04-25 15:01:18 +02:00
ganfra
cf1c728eab Timeline : makes sure all tests are passing 2024-04-25 14:35:37 +02:00
Benoit Marty
15652d97e5 Fix issue when building previews, roomId must be unique 2024-04-25 12:39:25 +02:00
Benoit Marty
b5537895b5 Use fallback name in this case. 2024-04-25 12:29:44 +02:00
Benoit Marty
f1a31e3b3c Ensure roomId are not rendered in the UI.
Add preview to see the effect.
Use RoomAvatar data fallback everywhere, to not use roomId (`!` char) for the avatar initial, but rather `#`.
2024-04-25 11:52:40 +02:00
Benoit Marty
610caf6d90 Move fun aRoomSummaryDetails() to a regular Preview Provider 2024-04-25 10:10:55 +02:00