Commit graph

12794 commits

Author SHA1 Message Date
renovate[bot]
fd48e73851 Update metro to v0.8.2 2025-12-09 08:57:05 +01:00
Skye Elliot
59f51d8627
Add alert to encrypted rooms with visible history (Android). (#5709)
* feat: Add visible history alert to encrypted rooms.

- Adds a dismissable alert that is displayed whenever the user opens a
  room with `history_visibility` != `joined`. When cleared, this is
  recorded in the app's data store.
- When opening a room with `history_visibility` = `joined`, this flag is
  cleared.`

Issue: https://github.com/element-hq/element-meta/issues/2875

* chore: Fix linting issues.

* feat: Move alert showing logic into state presenter.

* chore: Fix linting issues.

* tests: Fixup tests.

* feat: Use real link.

* chore: Update license header.

* chore: Add (c) to license headers.

* chore: Add `.` to license header.

* feat: Lock alert behind history sharing developer setting.

* ci: Trigger record screenshots

* feat: Create repo key using session ID for multi-account support.

* feat: Use session ID hash for constructing data store.

* tests: Correct and update tests.

* tests: Update snapshots.

* feat: Prevent identity alert from displaying with history visibility alert.

* feat: Tidy up HistoryVisibleStatePresenter logic, update previews.

* chore: Remove unused import.

* chore: Update screenshots.

* feat: Add translation string.

* chore: Remove redundant temporary translation file.
2025-12-08 21:19:15 +01:00
renovate[bot]
a5912e6960
fix(deps): update dependency io.mockk:mockk to v1.14.7 (#5866)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-12-08 14:16:36 +00:00
Benoit Marty
f76d817b4e
Merge pull request #5852 from element-hq/renovate/io.nlopez.compose.rules-detekt-0.x
fix(deps): update dependency io.nlopez.compose.rules:detekt to v0.5.1
2025-12-08 15:05:12 +01:00
renovate[bot]
a7a1497c50
Merge pull request #5853 from element-hq/renovate/io.sentry-sentry-android-8.x
fix(deps): update dependency io.sentry:sentry-android to v8.28.0
2025-12-08 14:50:03 +01:00
Benoit Marty
2fe71e6c22 Trigger CI 2025-12-08 14:28:29 +01:00
Benoit Marty
4df192ff86
Merge pull request #5855 from element-hq/renovate/org.matrix.rustcomponents-sdk-android-25.x
fix(deps): update dependency org.matrix.rustcomponents:sdk-android to v25.12.4
2025-12-08 14:24:24 +01:00
Benoit Marty
47b4eaff9e
Merge pull request #5860 from element-hq/sync-localazy
Sync Strings
2025-12-08 10:43:14 +01:00
bmarty
3935a3b6ce Sync Strings from Localazy 2025-12-08 00:34:18 +00:00
Jorge Martín
7a35ab6c4a Make DefaultWorkManagerScheduler a singleton sin it now has an observer that should be a singleton 2025-12-05 17:42:57 +01:00
Jorge Martín
5947d6cd67 Use SessionObserver instead of SessionStore to observe sessions 2025-12-05 17:42:57 +01:00
Jorge Martín
6ef86cdda9 Test DefaultWorkManagerScheduler 2025-12-05 17:42:57 +01:00
Jorge Martín
9c7ba58114 Don't re-schedule notification fetches if the cause of the failure is SessionRestorationException, since that means it'll most likely fail again 2025-12-05 17:42:57 +01:00
Jorge Martín
10224d8e01 Add SessionRestorationException, make sure ClientException can expose it through the cause property 2025-12-05 17:42:57 +01:00
Benoit Marty
6541652d82 Fix warning "Throwable should be first argument" 2025-12-05 09:48:26 +01:00
Benoit Marty
54e742075d Detekt: enable rule exceptions.SwallowedException and fix existing issue. 2025-12-05 09:45:23 +01:00
Benoit Marty
d0df2cd088 Update detekt rules after updating compose.rules to version 0.5.1. 2025-12-05 09:33:21 +01:00
Jorge Martín
33441d9d40 Fix: use the right BuildTimeConfig field for the SDK DSN
We were using `SERVICES_SENTRY_SDK_DSN`, but the enterprise template uses `SERVICES_SENTRY_DSN_RUST`
2025-12-04 22:53:39 +01:00
Jorge Martín
de91d56e13 Add missing abstractions and fakes 2025-12-04 18:02:59 +01:00
ganfra
b6ff51b410
Merge pull request #5854 from element-hq/feature/fga/space_invite_notification
change(notification): handle invite notification for spaces
2025-12-04 16:56:17 +01:00
Jorge Martín
89149a4268 Restore disabled tests with FFI fakes 2025-12-04 16:55:22 +01:00
renovate[bot]
e6a681899e
fix(deps): update dependency org.matrix.rustcomponents:sdk-android to v25.12.4 2025-12-04 15:19:18 +00:00
ganfra
a52e1c28d1
Merge branch 'develop' into feature/fga/space_invite_notification 2025-12-04 15:53:49 +01:00
renovate[bot]
5e57e2cebb
fix(deps): update dependency io.nlopez.compose.rules:detekt to v0.5.1 2025-12-04 14:21:35 +00:00
renovate[bot]
399a267764 chore(deps): update plugin sonarqube to v7.2.0.6526 2025-12-04 15:19:36 +01:00
ganfra
236db9e35d change(notification): handle invite notification for spaces 2025-12-04 12:25:30 +01:00
Jorge Martín
342ee0c10b Replace AnalyticsSdkSpanFactory with AnalyticsSdkManager.
`AnalyticsSdkManager` also enables and disables Sentry logging in the SDK based on analytics user content.
2025-12-04 12:17:52 +01:00
Jorge Martín
942eae94ad Make SentrySdkDsn a value class instead of a qualifier 2025-12-04 12:17:52 +01:00
Jorge Martín
890b6111ea Fix providing the Sentry SDK DSN in Element Pro when no analytic modules are enabled 2025-12-04 12:17:52 +01:00
Jorge Martín
6c82393bcb Add missing doc 2025-12-04 12:17:52 +01:00
Jorge Martín
42a579a6d4 Fix screenshot tests blocking testDebugUnitTest task 2025-12-04 12:17:52 +01:00
Jorge Martín
bd427735ff Allow bridging Sentry spans to the SDK ones.
Add distributed tracing for `Room.timelineWithConfiguration`, so we can inspect the associated Rust trace.
2025-12-04 12:17:52 +01:00
Jorge Martín
6c404fda36 Update GH action flows to include the SDK DSN value 2025-12-04 12:17:52 +01:00
Jorge Martín
883397e9dc Enable Sentry in the SDK: add SDK Sentry DSN value
This is provided to the SDK in `PlatformInitializer`.
2025-12-04 12:17:52 +01:00
Benoit Marty
b20ccf8b63
Merge pull request #5845 from element-hq/feature/bma/unsavedChangeDialog
Update unsaved change dialog
2025-12-04 11:03:42 +01:00
Benoit Marty
24e3705671 run command ./gradlew ktlintFormat :) 2025-12-04 10:18:19 +01:00
Jorge Martín
97d38b5910 Restore no-unused-imports behaviour for ktlintFormat 2025-12-04 10:18:19 +01:00
ganfra
74d1599c6c
Merge pull request #5831 from element-hq/renovate/org.maplibre.gl-android-sdk-12.x
fix(deps): update dependency org.maplibre.gl:android-sdk to v12.2.1
2025-12-04 10:10:34 +01:00
Benoit Marty
29cba900f2
Merge pull request #5835 from element-hq/feature/bma/limitComposerHeight
Limit composer height dynamically
2025-12-04 09:49:19 +01:00
renovate[bot]
8f3fbfbc52 fix(deps): update metro to v0.8.1 2025-12-04 08:07:32 +01:00
renovate[bot]
95414b4051 fix(deps): update dependency androidx.exifinterface:exifinterface to v1.4.2 2025-12-04 08:07:20 +01:00
ElementBot
fe2112d6e4 Update screenshots 2025-12-03 17:45:55 +00:00
Benoit Marty
b7bc8e20d5 Fix compilation issue after rebase. 2025-12-03 18:26:25 +01:00
ganfra
1410563643
Merge pull request #5832 from element-hq/feature/fga/fix_owner_admin_displayed_twice
fix: usersWithRole(Owner) returns creators only if privilegedCreatorRole is true
2025-12-03 18:19:20 +01:00
Benoit Marty
e6e67a02b7 CreatePollEvents -> CreatePollEvent 2025-12-03 18:13:18 +01:00
Benoit Marty
82a32371cc RoomDetailsEditEvents -> RoomDetailsEditEvent 2025-12-03 18:05:12 +01:00
Benoit Marty
4b0fb341b6 Fix tests 2025-12-03 18:05:12 +01:00
Benoit Marty
e6dc2501a5 EditUserProfileEvents -> EditUserProfileEvent 2025-12-03 18:05:11 +01:00
Benoit Marty
766e97dcc1 Fix test 2025-12-03 18:05:11 +01:00
Benoit Marty
12ca8a2186 SecurityAndPrivacyEvents -> SecurityAndPrivacyEvent 2025-12-03 18:05:10 +01:00