Commit graph

1190 commits

Author SHA1 Message Date
ganfra
ea35e36aff Timeline: move TimelineEncryptedHistoryPostProcessor off the main thread 2023-07-28 16:22:30 +02:00
ganfra
878aa39781 Also catch Exception instead of RoomListException 2023-07-27 21:12:07 +02:00
ganfra
1d97412523 Fix warning 2023-07-27 21:11:34 +02:00
ganfra
6cd764dc1f Timeline: fetch members only after timeline is ready 2023-07-27 20:49:56 +02:00
ganfra
69c42a3cbc Update rust sdk to 0.1.37 2023-07-27 20:49:27 +02:00
Benoit Marty
0627a1155c Auto capitalize first letter of sentences for messages, room topic and bug report description. (#948) 2023-07-27 17:13:42 +02:00
Benoit Marty
036658232b
Merge pull request #983 from vector-im/feature/bma/lintErrors
Update lint rules, remove unused resource and sync strings.
2023-07-27 15:59:38 +02:00
Jorge Martin Espinosa
914235228d
[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
Benoit Marty
8f4b664158 Sync strings. 2023-07-27 12:16:04 +02:00
Benoit Marty
56614da071 Fix lint false positive. 2023-07-27 11:50:16 +02:00
Benoit Marty
3c0a81c416 Ignore unused integer resources. 2023-07-27 11:44:40 +02:00
Benoit Marty
4cdc0c1280 Ignore unused generated resource for Firebase. 2023-07-27 11:41:35 +02:00
Benoit Marty
908471cd51 Remove other unused resource. 2023-07-27 11:41:10 +02:00
Benoit Marty
40bbf1970c Remove unused strings. 2023-07-27 11:32:47 +02:00
Benoit Marty
bbf8a86524 Remove unused drawables. 2023-07-27 11:32:39 +02:00
Jorge Martin Espinosa
dbec1a0a60
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
05f7037939
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
9211a33ad8 Add missing preview. 2023-07-26 14:01:23 +02:00
ganfra
506b473d4d Small change after PR review 2023-07-25 18:41:43 +02:00
ganfra
da57f42fcc Merge branch 'develop' into feature/fga/avoid_deadlocks 2023-07-25 16:09:24 +02:00
ganfra
e0eea67e7a Clean PR 2023-07-25 16:02:33 +02:00
Benoit Marty
f27cc5a35b
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
e35bb73a86 Rework some MatrixRoom api and fix rust 'destroyed' crash 2023-07-25 12:06:36 +02:00
Benoit Marty
caaa1923c7
Merge pull request #952 from vector-im/feature/bma/fixPushStoreCrash
Fix push store crash
2023-07-25 09:43:37 +02:00
Benoit Marty
a6c96af731 Use ConcurrentHashMap to manage synchronization. 2023-07-24 21:53:19 +02:00
Benoit Marty
832fd69153 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
4029425ec3 Fix regression from 9bf7c1ccf8, composition log was not correct. 2023-07-24 15:36:55 +02:00
Benoit Marty
a2975ec094 Add a test to cover fix of #950 2023-07-24 15:28:36 +02:00
Benoit Marty
94bc2ce53d 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
4312a96851 Cleanup: there are no androidTest on those modules. 2023-07-24 12:41:02 +02:00
bmarty
af2159e98f Sync Strings from Localazy 2023-07-24 00:10:09 +00:00
ganfra
a3bcb2c4ca Room: avoid calling displayName/avatarData on each recomposition 2023-07-21 15:19:19 +02:00
ganfra
5089dd0dda Session.getRoom : suspend the whole method 2023-07-21 14:12:54 +02:00
ganfra
0a59e974ae Deadlock: makes sure timelineListener TaskHandle.cancel is called (and memory is released correctly) 2023-07-21 14:12:28 +02:00
Benoit Marty
5e2e03f054
Merge branch 'develop' into feature/bma/noWarnings 2023-07-21 12:17:50 +02:00
Benoit Marty
c94789d3ea
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
1583899261 Introduce Disposable extension to destroy all disposable in an Iterable 2023-07-21 10:20:37 +02:00
Benoit Marty
e1a113e938 Enable LocationSharing flag for the release. 2023-07-20 22:21:31 +02:00
Benoit Marty
2c11f472ca 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
fd26f987a8 Remove feature flag ShowStartChatFlow. It was just used in test. 2023-07-20 22:07:32 +02:00
Benoit Marty
da818229dc Remove feature flag CollapseRoomStateEvents. It was not used anyway. 2023-07-20 22:01:45 +02:00
Benoit Marty
1be26c9fad Fix compilation issue 2023-07-20 20:01:35 +02:00
Benoit Marty
c75eabbcb0 Enable detekt rules UnnecessaryParentheses and cleanup the code. 2023-07-20 18:08:08 +02:00
Benoit Marty
2928073e22 Enable detekt rules UnusedImports and cleanup the code. 2023-07-20 18:00:23 +02:00
Benoit Marty
86756dbc09 Enable detekt rules UnusedParameter and UnusedPrivateProperty and cleanup the code. 2023-07-20 17:48:56 +02:00
Benoit Marty
24ece8c454 Enable detekt rule UnusedPrivateMember and cleanup the code. 2023-07-20 17:44:14 +02:00
Benoit Marty
d7f8aa533e 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
2163c1db8c Create sheetStateForPreview to avoid code duplication. 2023-07-20 17:39:55 +02:00
Marco Romano
a1313c2890
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
c7222e2969 Fix warning (suppress, no sure I want to delete this class right now) 2023-07-20 15:41:44 +02:00