Commit Graph

3336 Commits

Author SHA1 Message Date
Benoit Marty
e3c7e37f23 When user manually mark a room as read, also dismiss the notifications for this room. 2024-07-16 13:10:30 +02:00
Benoit Marty
2585f8ba52 Rename interface NotificationDrawerManager to NotificationCleaner since it actually contains only method to remove notifications. 2024-07-16 11:24:41 +02:00
Benoit Marty
591eac4ddc Merge pull request #3199 from element-hq/feature/bma/improvePip
Improve pip and add feature flag.
2024-07-16 10:18:13 +02:00
Jorge Martin Espinosa
89ec904c4a Restore intentional mentions in the markdown/plain text editor (#3193)
* Restore intentional mentions in the markdown/plain text editor

---------

Co-authored-by: ElementBot <benoitm+elementbot@element.io>
2024-07-15 18:27:59 +02:00
Benoit Marty
f3b3b97877 Add preview for Call screen in different PipState. 2024-07-15 17:23:03 +02:00
Benoit Marty
a7c6b7e751 When PiP is supported, use Back for top left icon instead of Close. #3197 2024-07-15 17:23:03 +02:00
Benoit Marty
77a42f2198 Call in PiP: when closing PiP, hang up the call.
The Activity is actually not destroyed as I expected.
2024-07-15 17:22:34 +02:00
Benoit Marty
b95004fe23 Call in PiP: add feature flag, disabled in release builds. 2024-07-15 16:48:39 +02:00
bmarty
3865709d98 Sync Strings from Localazy 2024-07-15 00:23:30 +00:00
Jorge Martin Espinosa
176755ac33 Subscribe to RoomListItems in the visible range (#3169)
* Subscribe to `RoomListItems` in the visible range

This ensures the room list items always have updated info.
2024-07-11 10:54:56 +02:00
Jorge Martin Espinosa
bb47ff8f49 Unify the way we decide whether a room is a DM or a group room (#3100)
* Add centralised 'room is DM' check

Also add extension functions for `MatrixRoom` and `MatrixRoomInfo`.

* Use the centralised method and extension functions through the app, including:

- Room list.
- Room details screen.
- Invites.
- Notifications.

Replace most `isDirect` usages with `isDm`.

* Update screenshots

---------

Co-authored-by: ElementBot <benoitm+elementbot@element.io>
2024-07-10 16:28:46 +00:00
Benoit Marty
922f65cc96 Some renaming. 2024-07-10 16:27:29 +02:00
Benoit Marty
21fafe2fc9 No need to be a member of the class. 2024-07-10 16:26:09 +02:00
Benoit Marty
6d65c90e81 Some renaming. 2024-07-10 16:25:20 +02:00
Benoit Marty
1a94be4e9e Rework. Keep io.element.android.appconfig.LockScreenConfig as simple as possible. 2024-07-10 16:25:20 +02:00
Benoit Marty
39ca870d45 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
c37005b7bf 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
29b115dfdf Introduce ElementThemeApp to avoid code duplication. 2024-07-09 11:10:10 +02:00
Benoit Marty
15873e9af2 Merge branch 'develop' into feature/bma/realDarkTheme 2024-07-09 10:19:26 +02:00
Benoit Marty
02d6134643 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
b21065fe64 Fix KtLint issue 2024-07-08 18:48:51 +02:00
Benoit Marty
95d6404290 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
7c37cdee5f Ensure PinUnlockActivity and IncomingCallActivity use the internal theme set by the user. 2024-07-08 18:17:44 +02:00
Benoit Marty
18e6304e0a Fix test compilation 2024-07-08 17:49:39 +02:00
Benoit Marty
a83c5d4bd7 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
8dae7f2f69 Use session coroutine scope instead of application coroutine scope. 2024-07-08 16:47:17 +02:00
Benoit Marty
d915201dd3 Remove test on API 24 (working locally but not on CI :/) 2024-07-08 14:38:54 +02:00
Jorge Martin Espinosa
a3de1e769b 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
d00af657a2 Add Ui test on CallScreenView 2024-07-08 12:30:06 +02:00
Benoit Marty
079364501a Rename method (copy paste error) 2024-07-08 12:14:03 +02:00
Benoit Marty
44030a6916 Add preview for loading state. 2024-07-08 12:08:42 +02:00
Benoit Marty
e5ad655242 Add support for Picture in Picture for ElementCallActivity 2024-07-08 12:04:59 +02:00
ElementBot
8e059cc5c2 Sync Strings (#3156)
Co-authored-by: bmarty <3940906+bmarty@users.noreply.github.com>
2024-07-08 07:34:58 +00:00
renovate[bot]
8aa4fbdade 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
2fb7220ec4 Format file. No other change. 2024-07-05 16:24:57 +02:00
Benoit Marty
27e4b5d82f Ensure that all the callback instances are invoked. 2024-07-05 12:13:21 +02:00
Benoit Marty
4c135a1111 Add icon for "Mark as read" and "Mark as unread" action. 2024-07-05 10:12:11 +02:00
Benoit Marty
ea62ed7c5a Improve click behavior on room timeline title. #3063 2024-07-04 09:26:39 +02:00
ganfra
d0eecd01b3 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
4918ec25b5 Draft : improve DefaultComposerDraftService code. 2024-07-03 15:04:38 +02:00
ganfra
f3bacc3c85 Draft : add some doc on ComposerDraftStores 2024-07-03 15:04:05 +02:00
jmartinesp
58f2cbf489 Sync Strings from Localazy 2024-07-03 11:21:27 +00:00
Jorge Martin Espinosa
950e502ca6 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
9a15a1ae71 Draft : use the volatile draft store when moving to edit mode 2024-07-03 12:03:51 +02:00
Jorge Martin Espinosa
e4e7cdfa17 Fix crash when getting the system ringtone for ringing calls (#3131) 2024-07-02 16:12:29 +00:00
Jorge Martin Espinosa
e9e7d4d0c4 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
157f933e59 Draft : introduce VolatileComposerDraftStore 2024-07-02 18:01:09 +02:00
Benoit Marty
150c077a70 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
0799d931b2 Fix tests 2024-07-02 13:50:10 +02:00
Benoit Marty
b709984582 Use SDK to get Element Wellknown content. 2024-07-02 13:28:26 +02:00