Commit graph

1222 commits

Author SHA1 Message Date
ElementBot
784b84d1e8
Sync Strings from Localazy (#1002)
Co-authored-by: bmarty <bmarty@users.noreply.github.com>
2023-07-31 13:49:52 +00:00
Jorge Martin Espinosa
eb80f5bbfe
Fix detekt issues in develop (#1004)
Co-authored-by: Marco Romano <marcor@element.io>
2023-07-31 14:01:08 +02:00
ganfra
f1d438e701
Merge pull request #997 from vector-im/feature/fga/remove_from_main_thread
Feature/fga/remove from main thread
2023-07-31 13:39:06 +02:00
ganfra
13209b0aa0 Merge branch 'develop' into feature/fga/safer_callback_flows 2023-07-31 11:36:59 +02:00
ganfra
e9802ffea6 Small changes after reviews 2023-07-31 11:36:28 +02:00
ganfra
fa9fa69697 Makes sure NotificationService is suspendable 2023-07-28 17:56:17 +02:00
Benoit Marty
5ed29b1466
Merge pull request #986 from vector-im/feature/bma/bigFontSizeImprovement
Big font size improvements
2023-07-28 17:02:29 +02:00
Benoit Marty
822bb82347
Merge pull request #967 from vector-im/feature/bma/detektConfig
Update detekt config.
2023-07-28 16:47:26 +02:00
Benoit Marty
39bd0b9746 fix typo 2023-07-28 16:34:37 +02:00
ganfra
ea35e36aff Timeline: move TimelineEncryptedHistoryPostProcessor off the main thread 2023-07-28 16:22:30 +02:00
Benoit Marty
36d2246e2a
Merge pull request #991 from vector-im/feature/bma/redactRegardingPowerLevel
Allow user with enough power level to redact other's messages (#969)
2023-07-28 16:13:54 +02:00
Benoit Marty
4cb0417afa 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
bf0b364da9 Split long line. 2023-07-28 16:08:38 +02:00
ganfra
bd5e1e6520 No crash when room is already destroyed... 2023-07-28 13:40:18 +02:00
Benoit Marty
5ace169440 Update the API and add UI screenshots demoing it. 2023-07-28 10:29:13 +02:00
Benoit Marty
26bae1a831 Move extension to dedicated file. 2023-07-28 10:01:22 +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
82e35cda0d Allow user with enough power level to redact other's messages (#969) 2023-07-27 18:42:45 +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
Benoit Marty
3c07fea2dd Improve rendering of Text composer regarding fontScale. (#984) 2023-07-27 15:45:02 +02:00
Benoit Marty
3c1f764bee Improve rendering of "All chats" regarding fontScale. (#984) 2023-07-27 15:44:56 +02:00
Benoit Marty
94c6223be2 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
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
2da6ceeb5f Previous code was throw IllegalStateException(), so keep the existing error, even if it should never happen, being compliant with UseCheckOrError detekt rule. 2023-07-27 12:59:16 +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
Benoit Marty
495d6020ad Enable detekt rules UseLet and fix existing issues. 2023-07-26 12:12:07 +02:00
Benoit Marty
b8281052b9 Enable detekt rules UseDataClass and fix existing issues. 2023-07-26 11:51:17 +02:00
Benoit Marty
b3cf0d2cf1 Enable detekt rules UnderscoresInNumericLiterals and fix existing issues. 2023-07-26 11:48:08 +02:00
Benoit Marty
f7536a5450 Enable more detekt rules and remove unused extension. 2023-07-26 11:25:05 +02:00
Benoit Marty
1354ec76c9 Enable detekt rules DataClassShouldBeImmutable and fix existing issues. 2023-07-26 11:18:00 +02:00
Benoit Marty
19e81825ff Enable detekt rules AlsoCouldBeApply and fix existing issues. 2023-07-26 11:10:46 +02:00
Benoit Marty
e0255777c0 Enable detekt rules CascadingCallWrapping and fix existing issues. 2023-07-26 11:07:25 +02:00
Benoit Marty
bd0031445e Enable detekt rule TooGenericExceptionThrown and fix existing issue. 2023-07-26 10:40:41 +02:00
Benoit Marty
b5a5118160 Enable detekt rule ThrowingExceptionsWithoutMessageOrCause and fix existing issues. 2023-07-26 10:33:51 +02:00
Benoit Marty
73347deaaf Enable detekt rule UseCheckOrError and fix existing issues (and a potential crash on MapboxMap?). 2023-07-26 10:18:28 +02:00
Benoit Marty
3f372e5804 Enable detekt rule ImplicitDefaultLocale and fix existing issue. 2023-07-26 10:11:00 +02:00
Benoit Marty
6aa5239189 Enable detekt rule PreviewPublic and fix existing issues. 2023-07-26 10:08:39 +02:00