Commit graph

3321 commits

Author SHA1 Message Date
Benoit Marty
97f3959379
Merge pull request #3146 from element-hq/feature/bma/invokeAllCallbacks
Ensure that all callback plugins are invoked.
2024-07-09 16:17:02 +02:00
Benoit Marty
eaf2d367fc
Merge pull request #3163 from element-hq/feature/bma/clearCacheEmptyScreen
Fix empty screen issue after clearing the cache
2024-07-09 15:36:45 +02:00
Benoit Marty
bb5ae89b2f Introduce ElementThemeApp to avoid code duplication. 2024-07-09 11:10:10 +02:00
Benoit Marty
da78222090
Merge branch 'develop' into feature/bma/realDarkTheme 2024-07-09 10:19:26 +02:00
Benoit Marty
b0c9091948
Merge pull request #3159 from element-hq/feature/bma/elementCallPip
Add support for Picture In Picture for Element Call
2024-07-08 19:58:39 +02:00
Benoit Marty
214c9d2d2b Fix KtLint issue 2024-07-08 18:48:51 +02:00
Benoit Marty
c73d814220 CallScreenPresenter is reading the current theme, it needs to be in the ElementTheme block. Closes #3153 2024-07-08 18:35:03 +02:00
Benoit Marty
9856ece42a Ensure PinUnlockActivity and IncomingCallActivity use the internal theme set by the user. 2024-07-08 18:17:44 +02:00
Benoit Marty
5ccf95018d Fix test compilation 2024-07-08 17:49:39 +02:00
Benoit Marty
e48b958d52 When clearing cache, ensure that SessionPreferencesStore is removed from the cache.
Fixes blank screen after clear cache.
Also cleanup the codebase.
2024-07-08 16:48:40 +02:00
Benoit Marty
fbe70ddf5d Use session coroutine scope instead of application coroutine scope. 2024-07-08 16:47:17 +02:00
Benoit Marty
962320a0d8 Remove test on API 24 (working locally but not on CI :/) 2024-07-08 14:38:54 +02:00
Jorge Martin Espinosa
d9a498c86a
Reduce delay when selecting room list filters (#3160)
Previously, this had to wait for a recomposition until it was launched, which took ~100ms in a debug build. With these changes, the side effect is emitted in 10-20ms instead.
2024-07-08 11:42:38 +00:00
Benoit Marty
0093e611cd Add Ui test on CallScreenView 2024-07-08 12:30:06 +02:00
Benoit Marty
966219b791 Rename method (copy paste error) 2024-07-08 12:14:03 +02:00
Benoit Marty
664f78741d Add preview for loading state. 2024-07-08 12:08:42 +02:00
Benoit Marty
a005c80fe4 Add support for Picture in Picture for ElementCallActivity 2024-07-08 12:04:59 +02:00
ElementBot
3a91b4f39d
Sync Strings (#3156)
Co-authored-by: bmarty <3940906+bmarty@users.noreply.github.com>
2024-07-08 07:34:58 +00:00
renovate[bot]
68efc918ba
Update dependency org.matrix.rustcomponents:sdk-android to v0.2.31 (#3145)
* Update dependency org.matrix.rustcomponents:sdk-android to v0.2.31

* Use new Rust client side sorting API

* Make `RoomListEntriesUpdate.describe()` an extension function

* Remove `RoomListSummary.Filled` and `RoomListSummary.Empty`

* Fix icon sizes to pass the lint checks

* Update screenshots

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Jorge Martín <jorgem@element.io>
Co-authored-by: ElementBot <benoitm+elementbot@element.io>
2024-07-05 15:25:42 +00:00
Benoit Marty
1a99a9f0e6 Format file. No other change. 2024-07-05 16:24:57 +02:00
Benoit Marty
a7de751f0e Ensure that all the callback instances are invoked. 2024-07-05 12:13:21 +02:00
Benoit Marty
f5ad2abdd3 Add icon for "Mark as read" and "Mark as unread" action. 2024-07-05 10:12:11 +02:00
Benoit Marty
6a1304a252 Improve click behavior on room timeline title. #3063 2024-07-04 09:26:39 +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
ganfra
008ba4fee3 Draft : improve DefaultComposerDraftService code. 2024-07-03 15:04:38 +02:00
ganfra
83066250cc Draft : add some doc on ComposerDraftStores 2024-07-03 15:04:05 +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
ganfra
afd13ab22f Draft : introduce VolatileComposerDraftStore 2024-07-02 18:01:09 +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
3135c5307f Fix tests 2024-07-02 13:50:10 +02:00
Benoit Marty
8ec283f2ca Use SDK to get Element Wellknown content. 2024-07-02 13:28:26 +02:00
ganfra
f15e9daf67 Timeline : fix text item not refreshed when content change 2024-07-02 10:29:09 +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
4df18eadf4 Remove unused import 2024-07-01 16:18:20 +02:00
Benoit Marty
f34ba47906 Inject constructor 2024-07-01 16:12:27 +02:00
Benoit Marty
8ef970e3f7 Provide language and theme to Element Call. #3079 2024-07-01 15:51:41 +02:00
Benoit Marty
6a6e66765a Remove default value for languageTag and theme. 2024-07-01 14:32:27 +02:00
Benoit Marty
2529a8d844 Add parameter names. 2024-07-01 14:30:35 +02:00
ganfra
32b1b6e3f5
Merge pull request #3115 from element-hq/feature/fga/fix_draft_not_cleared
Draft : also clear draft when composer is blank
2024-07-01 13:06:40 +02:00
ganfra
3a610e6550 Draft : also clear draft when composer is blank 2024-07-01 12:23:42 +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
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
Benoit Marty
e5ec904697 Remove not needed dependency on libs.anvil.compiler.api and fix compilation issue of EXA. 2024-06-27 14:06:02 +02:00