Commit Graph

11302 Commits

Author SHA1 Message Date
Benoit Marty
9411b309d2 Rename View to follow naming convention and file name 2025-08-13 11:21:31 +02:00
Benoit Marty
519d24d3f0 Rename provider to follow naming convention 2025-08-13 11:19:21 +02:00
Benoit Marty
90f1552197 State data class cannot have default values. 2025-08-13 11:17:05 +02:00
Benoit Marty
9c32dbba58 Inject a StringProvider instead of the context, and update tests.
Also remove the other StringProvider we had, it was not used anymore
2025-08-13 11:07:28 +02:00
ganfra
5bbfaad03b refactor (start chat) : properly finish create room flow 2025-08-13 11:06:45 +02:00
ganfra
c41994ad13 refactor (start chat) : use invite people module in room details screen 2025-08-13 11:06:45 +02:00
ganfra
98343e0531 refactor (start chat) : remove useless code 2025-08-13 11:06:44 +02:00
ganfra
50073389c4 refactor (start chat) : create invite people module and start branching them 2025-08-13 11:06:43 +02:00
ganfra
1170a44116 refactor (start chat) : start splitting things (create room, invite people, start chat) 2025-08-13 11:06:42 +02:00
renovate[bot]
cab9291934 Update dependency androidx.browser:browser to v1.9.0 (#5096)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-08-13 09:23:27 +02:00
Jorge Martin Espinosa
a7ea665a3c Fix Maestro regression when coming back from room to the search screen (#5156) 2025-08-12 22:58:37 +02:00
Benoit Marty
0a4a4e20db Merge pull request #5160 from element-hq/feature/bma/cleanupFeatureFlags
Remove old feature flags
2025-08-12 18:21:44 +02:00
Benoit Marty
6196c5524e Remove unused import 2025-08-12 17:49:31 +02:00
Jorge Martin Espinosa
12ea2064c7 Provide calculated server names when opening a room from another (#5155)
* Provide calculated server names when opening a room from another, based on the most frequently used domain names in the user ids for the users in the room.

This helps when following permalinks or navigating to the successor room of a tombstoned one. Previously, the `/summary` endpoint was failing because no server names were used in the `via` parameters.
2025-08-12 15:17:46 +00:00
Benoit Marty
a282ca26c9 Revert "Remove FeatureFlag.SyncOnPush"
This reverts commit 45150de5b3.
2025-08-12 17:16:49 +02:00
ElementBot
56e3b1a9c4 Update screenshots 2025-08-12 15:02:25 +00:00
Benoit Marty
083e4fcbf2 Remove useless preview 2025-08-12 16:48:02 +02:00
ElementBot
98ffec0205 Update screenshots 2025-08-12 14:22:02 +00:00
Benoit Marty
8b511ca48a Remove FeatureFlag.SharePos 2025-08-12 16:08:48 +02:00
Benoit Marty
45150de5b3 Remove FeatureFlag.SyncOnPush 2025-08-12 16:08:47 +02:00
Benoit Marty
ebecc6652b Remove FeatureFlag.MediaUploadOnSendQueue 2025-08-12 16:08:46 +02:00
Benoit Marty
d025ae63ee Remove FeatureFlag.MediaCaptionCreation and FeatureFlag.MediaCaptionWarning 2025-08-12 16:08:45 +02:00
Benoit Marty
a0629d03fd Remove FeatureFlag.MediaGallery 2025-08-12 16:08:45 +02:00
Benoit Marty
3a14fcdc0d Remove FeatureFlag.PinnedEvents 2025-08-12 16:08:44 +02:00
Benoit Marty
c42ae056f2 Remove FeatureFlag.QrCodeLogin 2025-08-12 16:08:43 +02:00
Benoit Marty
fe8009e6bf Remove FeatureFlag.MarkAsUnread 2025-08-12 16:08:42 +02:00
Benoit Marty
be4e52e6ec Remove FeatureFlag.VoiceMessages 2025-08-12 16:08:41 +02:00
Benoit Marty
0eadf275e1 Remove FeatureFlag.NotificationSettings and FeatureFlag.PinUnlock 2025-08-12 16:08:40 +02:00
Benoit Marty
92990b27f3 Remove FeatureFlag.LocationSharing and FeatureFlag.Polls 2025-08-12 16:08:38 +02:00
Benoit Marty
75b4a4ba9d Suppress deprecation warning for test. 2025-08-12 15:52:08 +02:00
Benoit Marty
098ae0820e Replace FeatureFlag.LocationSharing by FeatureFlag.Space in unit test. 2025-08-12 15:52:07 +02:00
Benoit Marty
4192633930 Remove FeatureFlag.IncomingShare 2025-08-12 15:52:05 +02:00
Jorge Martin Espinosa
dc33a3b2d3 Do not automatically initialize DefaultVideoMetadataExtractor's data source (#5157)
This will cause a crash for image attachments
2025-08-12 13:03:43 +00:00
renovate[bot]
539db85e6c Update dependency io.sentry:sentry-android to v8.19.1 (#5158)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-08-12 12:52:13 +00:00
Jorge Martin Espinosa
00e72aae44 Hide the recovery key while we are entering it (#5147)
* Hide the recovery key while we are entering it (#5134)

This is the Element X Android part of
https://github.com/element-hq/element-meta/issues/2888

* Move the textfield contents being visible to the state so we can preview and test it

* Always use the password visual transformation for the recovery key field

* Update screenshots

---------

Co-authored-by: Andy Balaam <andy.balaam@matrix.org>
Co-authored-by: ElementBot <android@element.io>
2025-08-12 14:46:00 +02:00
Benoit Marty
d39332f8cc Merge pull request #5150 from element-hq/feature/bma/sdk36
Compile and target sdk36
2025-08-12 12:46:25 +02:00
Jorge Martin Espinosa
28c09c1668 Fix leaving the room not always dismissing the room screen (#5089)
* Fix leaving the room not always dismissing the room screen

Use the existing `RoomInfo` membership check to dismiss the room instead of using `RoomMembershipObserver`.

* Restore `membershipObserver`, check Maestro still works

* Improve the logic for the local membership change check

* Remove redundant room id check
2025-08-12 10:37:31 +00:00
ElementBot
c774d059f8 Update screenshots 2025-08-12 08:11:44 +00:00
Benoit Marty
600bb393d2 Upgrade Paparazzi lib to 2.0.0-alpha02 to fix test issue.
https://github.com/cashapp/paparazzi/issues/1877
2025-08-12 09:57:30 +02:00
Benoit Marty
55873bd47d Git ignore .idea/deviceManager.xml 2025-08-12 09:57:30 +02:00
Benoit Marty
7f88dd96b9 Compile and target SDK 36. 2025-08-12 09:57:30 +02:00
Benoit Marty
fa779b905e Set appCategory value to "social" in the Android Manifest 2025-08-12 09:57:30 +02:00
Benoit Marty
308cbb4380 Merge pull request #5139 from element-hq/feature/bma/rageshakeConfigStep2
Let enterprise build be able to override (or disable) the bug report URL.
2025-08-12 09:41:28 +02:00
renovate[bot]
ad6b23fc5b Update dependency io.sentry:sentry-android to v8.19.0 (#5149)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-08-12 09:40:41 +02:00
Benoit Marty
e8f58afb29 Update submodule ref. 2025-08-11 17:36:45 +02:00
Benoit Marty
37b50e0139 Merge branch 'develop' into feature/bma/rageshakeConfigStep2 2025-08-11 17:35:06 +02:00
Jorge Martin Espinosa
a170d80cb3 Add media file limit size warning and media quality selection (#5131)
* Add `VideoCompressorPreset` enum

This represents the different compression presets used for processing videos before uploading them

* Add `VideoCompressorHelper` util class to calculate the scaled output size of the video given an input size and its optimal bitrate

Also add `MediaOptimizationConfig` which will be used to decide how to apply compression in `MediaPreProcessor`

* Add `RustMatrixClient.getMaxFileUploadSize()` function and `MaxUploadSizeProvider` so we can import only this functionality into other components

* Try preloading the max file upload size the first time we get network connectivity - it's a best effort

This should help ensure we'll have this value available later, even if we still need to load it asynchronously.

* Split the `compressMedia` preference into `compressImages` and `compressMediaPreset`

* Modify the media processing parts to use the new classes and utils

* Add `MediaOptimizationSelectorPresenter`, which will retrieve the compression values and the max file upload size, also estimating the compressed video file sizes if needed.

* Add a feature flag to allow selecting the media upload quality per upload

* Integrate the previous changes with the attachments preview screen

Add strings from localazy too.

* Adapt the rest of the app calls to upload media to using the media optimization configs

* Allow modifying the default compression values in advanced settings, based on the feature flag value

* Pass the `fileSize` in `MediaUploadInfo` too, to be able to check it against the `maxUploadSize`

* Update screenshots

---------

Co-authored-by: ElementBot <android@element.io>
2025-08-11 17:22:46 +02:00
renovate[bot]
ffe183c952 Update actions/checkout action to v5 (#5148)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-08-11 13:37:56 +00:00
renovate[bot]
72cc788009 Update dependency io.github.sergio-sastre.ComposablePreviewScanner:android to v0.7.0 (#5143)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-08-11 15:09:14 +02:00
Benoit Marty
aa1c51f5c9 Code cleanup 2025-08-11 14:53:40 +02:00