Commit graph

2778 commits

Author SHA1 Message Date
ganfra
c8a01e38f1 Bugfix : avoid potential NPE on verification service. 2024-07-04 14:51:14 +02:00
ganfra
c7dd2d5b6e
Merge pull request #3132 from element-hq/feature/fga/draft_in_memory_when_editing
Draft : add volatile storage when moving to edit mode.
2024-07-03 15:38:00 +02:00
jmartinesp
dabaa2d265 Sync Strings from Localazy 2024-07-03 11:21:27 +00:00
Jorge Martin Espinosa
b0cebf5ca0
Improve screenshot testing with ComposablePreviewScanner (#3125)
* Use ComposablePreviewScanner to rework how screenshot testing works
* Add test sharding
* Update screenshots
* Fixes for Element Gallery

---------

Co-authored-by: ElementBot <benoitm+elementbot@element.io>
Co-authored-by: Benoit Marty <benoit@matrix.org>
2024-07-03 13:05:06 +02:00
ganfra
82838d6ea5 Draft : use the volatile draft store when moving to edit mode 2024-07-03 12:03:51 +02:00
Jorge Martin Espinosa
05df1f2065
Fix crash when getting the system ringtone for ringing calls (#3131) 2024-07-02 16:12:29 +00:00
Jorge Martin Espinosa
32a374d836
FFs can now be toggled in release builds too (#3101)
- Removed `StaticFeatureFlagProvider`.
- Always provide `PreferencesFeatureFlagProvider`.
- For the default values of feature flags, use a lambda with a `BuildMeta` parameter so we can customize the return value based on its data.
2024-07-02 16:06:42 +00:00
Benoit Marty
4757aac8b8
Merge pull request #3130 from element-hq/feature/bma/fixElementEnterpriseNightly
Fix Element Enterprise nightly build and publication using App Distribution
2024-07-02 17:45:49 +02:00
Benoit Marty
37eaa5e094
Merge pull request #3127 from element-hq/feature/bma/elementWellKnown
Let the SDK retrieve and parse Element well known content
2024-07-02 17:16:06 +02:00
Benoit Marty
c25cdafff8 Move google_app_id from resource file to build.gradle.kts file and use different values for enterprise build. 2024-07-02 16:32:47 +02:00
Benoit Marty
5529fcc520 Inject constructor. 2024-07-02 13:35:26 +02:00
Benoit Marty
8ec283f2ca Use SDK to get Element Wellknown content. 2024-07-02 13:28:26 +02:00
ganfra
82df03fc31 Timeline : re-enable edition of local echo 2024-07-02 11:42:36 +02:00
Benoit Marty
6531a39b5a Introduce UserServerResolver. 2024-07-02 10:22:56 +02:00
Benoit Marty
a4457da213 Remove dead code. 2024-07-02 10:20:25 +02:00
ganfra
b46f47fde3
Merge pull request #3119 from element-hq/renovate/org.matrix.rustcomponents-sdk-android-0.x
Update dependency org.matrix.rustcomponents:sdk-android to v0.2.29
2024-07-01 18:15:03 +02:00
ganfra
0348d030a7 Rust sdk : handle api changes (draft and edit) 2024-07-01 17:50:29 +02:00
Benoit Marty
6c4e7ec85e
Merge pull request #3025 from element-hq/feature/bma/elementEnterprise
Element enterprise (EE) foundations
2024-07-01 17:08:40 +02:00
Benoit Marty
9196adb8b0 Remove default value for languageTag and theme. 2024-07-01 14:30:18 +02:00
Benoit Marty
3749c8de10
Merge pull request #3110 from element-hq/fix/jme/session-verification-state-with-no-network
Fix incorrect 'device verified' screen when app was opened with no network connection
2024-07-01 11:09:24 +02:00
bmarty
32c5da898b Sync Strings from Localazy 2024-07-01 00:22:10 +00:00
Benoit Marty
f6fe030d6a
Merge pull request #3053 from element-hq/feature/bma/callSettings
Alert for incoming call even if notifications are disabled - WAITING FOR FINAL PRODUCT DECISION
2024-06-28 14:21:23 +02:00
Jorge Martín
f421f94639 Fix session verification incorrectly displaying as 'not verified' when the user opened the app with no network connection.
It turns out `encryptionService.verificationState()` runs a network request that will cause a deadlock when it fails.

Also fixed another deadlock that caused the screen to remain blank sometimes after logging in, because DataStore got stuck when checking the `skipVerification` state for some reason I don't fully understand.
2024-06-28 11:35:08 +02:00
ganfra
e9c995f96d Auth : fix restore session when there is no network. 2024-06-27 18:05:47 +02:00
Jorge Martin Espinosa
d6b259b85a
Fix @room mentions crashing in debug builds (#3107)
* Fix `@room` mentions crashing in debug builds

* Iterate on previous solution, add `MentionSpan.Type.EVERYONE`
2024-06-27 15:31:19 +00:00
Jorge Martin Espinosa
4904c4b751
Bump Rust SDK version and adapt our code (#3068)
* Use the new SDK version
* Adapt the authentication service to the new Rust SDK APIs
* Remove `Timeline.enterSpecialMode(...)` as it's no longer necessary
2024-06-27 09:44:14 +00:00
ganfra
1b56d1b97a Merge branch 'develop' into feature/fga/draft_support 2024-06-26 15:22:00 +02:00
ganfra
644b425d71 Draft : code cleanup 2024-06-26 12:15:00 +02:00
Benoit Marty
78c4f87776 Remove the method supportNotificationChannels() from SystemUtils, it has been copied in NotificationChannels.kt 2024-06-26 11:59:48 +02:00
Benoit Marty
a9fb4b95ce Add isEnterpriseBuild to BuildMeta 2024-06-26 11:59:45 +02:00
ganfra
e68684815d Draft : makes sure all existing tests passes 2024-06-25 15:17:18 +02:00
ganfra
321c2dca30 Draft : refactor a bit ComposerMode and formatting management so we don't mess up with draft restoration. 2024-06-25 11:35:22 +02:00
Benoit Marty
72373ab5ef
Merge pull request #3082 from element-hq/feature/bma/fixClearCacheImage
Fix image rendering after clear cache
2024-06-24 16:20:11 +02:00
Benoit Marty
4227b42dfa Add unit test on DefaultImageLoaderHolder 2024-06-24 14:42:04 +02:00
Benoit Marty
77ed70e26f Convert LoggedInImageLoaderFactory to an interface and add DefaultLoggedInImageLoaderFactory 2024-06-24 14:22:46 +02:00
Benoit Marty
0039387fbc Move test classes to the correct package. 2024-06-24 14:04:14 +02:00
Benoit Marty
8cc5f35e0c Fix image not rendering after clearing cache. 2024-06-24 13:58:15 +02:00
Benoit Marty
e999120864 Let role and permissions screens works for invited room members too. 2024-06-24 13:21:46 +02:00
Benoit Marty
010a90f9ff
Merge pull request #3069 from element-hq/feature/bma/avatarCluster_x2
Avatar cluster for DM
2024-06-24 10:53:50 +02:00
ElementBot
fd6bcb7857
Sync Strings (#3077)
Co-authored-by: bmarty <3940906+bmarty@users.noreply.github.com>
2024-06-24 09:29:35 +02:00
Benoit Marty
f0917ad38a Fix KDoc issue 2024-06-21 16:53:44 +02:00
Benoit Marty
da1f8cd465 Use DmAvatars in header of DM details. 2024-06-21 15:55:01 +02:00
Benoit Marty
f4325aed50 Create DmAvatars to render both users of a DM. 2024-06-21 15:45:22 +02:00
ganfra
2d324a7f4b Reply : fix reply cropped in timeline 2024-06-21 15:42:26 +02:00
ganfra
6ac7ab84ce Draft : branch reply mode 2024-06-21 12:40:16 +02:00
ganfra
5597a1743a Reply : refactor so we can use ReplyToDetails in Composer and Timeline 2024-06-21 12:23:17 +02:00
Jorge Martin Espinosa
310a7fc229
Resolve display names in mentions in real time (#3051)
* Resolve display names in mentions in real time

* Use `LocalRoomMemberProfilesCache` to avoid having to implement `TextMessagePresenter`

* Also use local composition provider for `MentionSpanProvider`
2024-06-21 09:57:36 +00:00
Benoit Marty
981dad71a3
Merge pull request #3058 from element-hq/feature/bma/dmColor
Let Dms use other member color.
2024-06-21 09:44:38 +02:00
Benoit Marty
3ce4af97cc Use repeat in the Preview. 2024-06-20 17:59:26 +02:00
Benoit Marty
cea7dce432 Create extension RoomMember.getAvatarData to avoid code duplication. 2024-06-20 17:51:35 +02:00