Commit graph

1183 commits

Author SHA1 Message Date
Benoit Marty
4d7307bae2 Showkase does not take into account the fontScale parameter of the Preview annotation, so alter the LocalDensity in the CompositionLocalProvider. 2023-07-28 16:08:38 +02:00
Benoit Marty
aabb455ea4 Split long line. 2023-07-28 16:08:38 +02:00
Benoit Marty
0b5a3c56d6 Update the API and add UI screenshots demoing it. 2023-07-28 10:29:13 +02:00
Benoit Marty
bfb27db58b Move extension to dedicated file. 2023-07-28 10:01:22 +02:00
Benoit Marty
1d89584daf Improve rendering of Text composer regarding fontScale. (#984) 2023-07-27 15:45:02 +02:00
Benoit Marty
96b7923979 Improve rendering of "All chats" regarding fontScale. (#984) 2023-07-27 15:44:56 +02:00
Benoit Marty
fb870a0903 Set expicit fontSize parameter (to default value 1f), to test different fontScale more easily. 2023-07-27 15:43:20 +02:00
Jorge Martin Espinosa
e351e87dbc [Compound] Implement platform components (Switch, RadioButton, Checkbox) (#982)
* Create our custom Switch component

* Update RadioButton colors

* Update Checkbox colors

* Fix padding in `ReplyToContent`

* Add `indeterminate` and `hasError` parameters to `CheckBox`.

Improve previews.

* Improve Switch previews.

* Improve RadioButton previews.

---------

Co-authored-by: ElementBot <benoitm+elementbot@element.io>
2023-07-27 14:55:58 +02:00
Jorge Martin Espinosa
9bd97ad329 Improve fetch members performance, relax regexes for validating ids (#964)
* Fetched `RoomMembers` are mapped in parallel

* Add horizontal padding to room/user name in room details screen

* Relax User & Event id regex matches

---------

Co-authored-by: ElementBot <benoitm+elementbot@element.io>
2023-07-26 16:31:26 +02:00
Jorge Martin Espinosa
a9d1a299f5 Prepare update to Rust SDK 0.1.36 (#966)
* Update to Rust SDK 0.1.36

* Cancel fetching members when the we exit the room
2023-07-26 14:22:09 +00:00
Benoit Marty
e7f673c5bc Add missing preview. 2023-07-26 14:01:23 +02:00
ganfra
ba12fbc9e3 Small change after PR review 2023-07-25 18:41:43 +02:00
ganfra
cfd43af45c Merge branch 'develop' into feature/fga/avoid_deadlocks 2023-07-25 16:09:24 +02:00
ganfra
9cf74eff63 Clean PR 2023-07-25 16:02:33 +02:00
Benoit Marty
e21c21db71 Merge pull request #957 from vector-im/feature/bma/fixRoomCrash
Rework the way we init and close the RustMatrixRoom
2023-07-25 15:48:57 +02:00
ganfra
daf23c5541 Rework some MatrixRoom api and fix rust 'destroyed' crash 2023-07-25 12:06:36 +02:00
Benoit Marty
bbd6399c65 Merge pull request #952 from vector-im/feature/bma/fixPushStoreCrash
Fix push store crash
2023-07-25 09:43:37 +02:00
Benoit Marty
da9f52129f Use ConcurrentHashMap to manage synchronization. 2023-07-24 21:53:19 +02:00
Benoit Marty
0ef49ca6ca Use an AtomicBoolean instead of a MutableStateFlow to atomically init the RustMatrixRoom. Should improve #951. 2023-07-24 18:04:21 +02:00
Benoit Marty
a3f28a442e Fix regression from 061ac9bce3, composition log was not correct. 2023-07-24 15:36:55 +02:00
Benoit Marty
754b4647ee Add a test to cover fix of #950 2023-07-24 15:28:36 +02:00
Benoit Marty
3457a76446 getOrPut is not thread safe, so ensure that no multiple instance will be created per data store (#950) 2023-07-24 15:01:48 +02:00
Benoit Marty
ac1d355f65 Cleanup: there are no androidTest on those modules. 2023-07-24 12:41:02 +02:00
bmarty
e196d951f8 Sync Strings from Localazy 2023-07-24 00:10:09 +00:00
ganfra
2f92203d85 Room: avoid calling displayName/avatarData on each recomposition 2023-07-21 15:19:19 +02:00
ganfra
c0b8388fad Session.getRoom : suspend the whole method 2023-07-21 14:12:54 +02:00
ganfra
a87ae86398 Deadlock: makes sure timelineListener TaskHandle.cancel is called (and memory is released correctly) 2023-07-21 14:12:28 +02:00
Benoit Marty
59a66479ab Merge branch 'develop' into feature/bma/noWarnings 2023-07-21 12:17:50 +02:00
Benoit Marty
81facd2e81 Merge pull request #934 from vector-im/feature/bma/clearNotifications
Clear all notifications of the session when the user signs out.
2023-07-21 12:15:06 +02:00
ganfra
ac108c4582 Introduce Disposable extension to destroy all disposable in an Iterable 2023-07-21 10:20:37 +02:00
Benoit Marty
1c90c32c4e Enable LocationSharing flag for the release. 2023-07-20 22:21:31 +02:00
Benoit Marty
cd3e6c42e2 Replace FeatureFlags.ShowMediaUploadingFlow by FeatureFlags.LocationSharing because it has more chance to be disabled.
I do not want to remove all our feature flags...
2023-07-20 22:20:38 +02:00
Benoit Marty
062e7553db Remove feature flag ShowStartChatFlow. It was just used in test. 2023-07-20 22:07:32 +02:00
Benoit Marty
63a675d1b3 Remove feature flag CollapseRoomStateEvents. It was not used anyway. 2023-07-20 22:01:45 +02:00
Benoit Marty
fce5234c7f Fix compilation issue 2023-07-20 20:01:35 +02:00
Benoit Marty
c72f1a09a7 Enable detekt rules UnnecessaryParentheses and cleanup the code. 2023-07-20 18:08:08 +02:00
Benoit Marty
55538c2773 Enable detekt rules UnusedImports and cleanup the code. 2023-07-20 18:00:23 +02:00
Benoit Marty
bd2826da3a Enable detekt rules UnusedParameter and UnusedPrivateProperty and cleanup the code. 2023-07-20 17:48:56 +02:00
Benoit Marty
bb3511e5f3 Enable detekt rule UnusedPrivateMember and cleanup the code. 2023-07-20 17:44:14 +02:00
Benoit Marty
fb587d279c Stop using deprecated LocalBroadcastManager. We will implement the code when we will work on the troubleshoot notification screen. 2023-07-20 17:39:55 +02:00
Benoit Marty
d84a9d5d24 Create sheetStateForPreview to avoid code duplication. 2023-07-20 17:39:55 +02:00
Marco Romano
e7136715a6 Update permission request dialog copy. (#931)
As per new designs.

Part of:
- https://github.com/vector-im/element-meta/issues/1682
2023-07-20 14:50:24 +00:00
Benoit Marty
527f239488 Fix warning (suppress, no sure I want to delete this class right now) 2023-07-20 15:41:44 +02:00
Benoit Marty
b62a174494 Fix warning (comment out dead code due to notification actions not active yet.) 2023-07-20 15:41:09 +02:00
Benoit Marty
201d137e79 Fix warning (suppress, no sure I want to delete this class right now) 2023-07-20 15:37:50 +02:00
Benoit Marty
d1e7f93458 Fix warning (remove dead code) 2023-07-20 15:36:23 +02:00
Benoit Marty
5db2ebe179 Fix warning (Build.VERSION.SDK_INT < Build.VERSION_CODES.Q here) 2023-07-20 15:34:55 +02:00
Benoit Marty
56b8969376 Fix warning ('when' is exhaustive so 'else' is redundant here) 2023-07-20 15:33:00 +02:00
Benoit Marty
ac61a8c916 Fix warning (comment out temporary dead code) 2023-07-20 15:32:19 +02:00
Benoit Marty
e3f75195c2 Clear all notifications of the session when the user signs out. 2023-07-20 14:53:38 +02:00