renovate[bot]
9bc336d17c
Update dependency org.matrix.rustcomponents:sdk-android to v0.1.38 ( #1015 )
...
* Update dependency org.matrix.rustcomponents:sdk-android to v0.1.38
* Fix API breaks
* Use `roomListItem.avatarUrl` if possible
---------
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Jorge Martín <jorgem@element.io>
1 year ago
ganfra
62a367520e
RoomList: use same logic than Timeline for caching built items. ( #1013 )
...
* RoomList: use same logic than Timeline for caching built items. Extract into reusable components.
* RoomList: fix tests
* Fix `DiffCacheUpdater` docs
---------
Co-authored-by: ganfra <francoisg@element.io>
Co-authored-by: Jorge Martín <jorgem@element.io>
1 year ago
David Langley
0b95ef09b7
Reaction summary view and sorting reactions by count and then timestamp ( #942 )
...
* Sort reactions by count and then timestamp
- Sort reactions within an aggregation by timestamp descending. This puts the most recent at the top, useful in cases like the reaction summary view or getting the most recent reaction.
- Sort aggregated reactions by count and then timestamp ascending, using the most recent reaction in the aggregation. This appends new aggregations on the end of the reaction layout.
* Add reaction summary view
* fix warnings
* Fix test unit tests and add sorting tests
- Fix broken build in test code
- Add a test for reaction sorting
* Remove default closure, move logic to presenter and add tests
* Update screenshots
* Fix imports
* Revert Screenshots I didn't update
* Fix imports remove screetshots
* Update screenshots
* Update screenshots
* Address comments.
* Update screenshots
* Remove unnecessary snapshotFlow
* Fix code quality checks
---------
Co-authored-by: ElementBot <benoitm+elementbot@element.io>
1 year ago
Marco Romano
2a59e6ae78
Properly inline `tryOrNull()` ( #1003 )
...
Nullable params can't be inlined, default empty lambdas are therefore preferred.
1 year ago
ElementBot
784b84d1e8
Sync Strings from Localazy ( #1002 )
...
Co-authored-by: bmarty <bmarty@users.noreply.github.com>
1 year ago
Jorge Martin Espinosa
eb80f5bbfe
Fix detekt issues in develop ( #1004 )
...
Co-authored-by: Marco Romano <marcor@element.io>
1 year ago
ganfra
e9802ffea6
Small changes after reviews
1 year ago
ganfra
fa9fa69697
Makes sure NotificationService is suspendable
1 year ago
Benoit Marty
39bd0b9746
fix typo
1 year ago
ganfra
ea35e36aff
Timeline: move TimelineEncryptedHistoryPostProcessor off the main thread
1 year ago
Benoit Marty
4cb0417afa
Showkase does not take into account the `fontScale` parameter of the Preview annotation, so alter the LocalDensity in the CompositionLocalProvider.
1 year ago
Benoit Marty
bf0b364da9
Split long line.
1 year ago
ganfra
bd5e1e6520
No crash when room is already destroyed...
1 year ago
Benoit Marty
5ace169440
Update the API and add UI screenshots demoing it.
1 year ago
Benoit Marty
26bae1a831
Move extension to dedicated file.
1 year ago
ganfra
878aa39781
Also catch Exception instead of RoomListException
1 year ago
ganfra
1d97412523
Fix warning
1 year ago
ganfra
6cd764dc1f
Timeline: fetch members only after timeline is ready
1 year ago
ganfra
69c42a3cbc
Update rust sdk to 0.1.37
1 year ago
Benoit Marty
82e35cda0d
Allow user with enough power level to redact other's messages ( #969 )
1 year ago
Benoit Marty
0627a1155c
Auto capitalize first letter of sentences for messages, room topic and bug report description. ( #948 )
1 year ago
Benoit Marty
3c07fea2dd
Improve rendering of Text composer regarding fontScale. ( #984 )
1 year ago
Benoit Marty
3c1f764bee
Improve rendering of "All chats" regarding fontScale. ( #984 )
1 year ago
Benoit Marty
94c6223be2
Set expicit `fontSize` parameter (to default value 1f), to test different fontScale more easily.
1 year ago
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>
1 year ago
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.
1 year ago
Benoit Marty
8f4b664158
Sync strings.
1 year ago
Benoit Marty
56614da071
Fix lint false positive.
1 year ago
Benoit Marty
3c0a81c416
Ignore unused integer resources.
1 year ago
Benoit Marty
4cdc0c1280
Ignore unused generated resource for Firebase.
1 year ago
Benoit Marty
908471cd51
Remove other unused resource.
1 year ago
Benoit Marty
40bbf1970c
Remove unused strings.
1 year ago
Benoit Marty
bbf8a86524
Remove unused drawables.
1 year ago
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>
1 year ago
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
1 year ago
Benoit Marty
9211a33ad8
Add missing preview.
1 year ago
Benoit Marty
495d6020ad
Enable detekt rules `UseLet` and fix existing issues.
1 year ago
Benoit Marty
b8281052b9
Enable detekt rules `UseDataClass` and fix existing issues.
1 year ago
Benoit Marty
b3cf0d2cf1
Enable detekt rules `UnderscoresInNumericLiterals` and fix existing issues.
1 year ago
Benoit Marty
f7536a5450
Enable more detekt rules and remove unused extension.
1 year ago
Benoit Marty
1354ec76c9
Enable detekt rules `DataClassShouldBeImmutable` and fix existing issues.
1 year ago
Benoit Marty
19e81825ff
Enable detekt rules `AlsoCouldBeApply` and fix existing issues.
1 year ago
Benoit Marty
e0255777c0
Enable detekt rules `CascadingCallWrapping` and fix existing issues.
1 year ago
Benoit Marty
bd0031445e
Enable detekt rule `TooGenericExceptionThrown` and fix existing issue.
1 year ago
Benoit Marty
b5a5118160
Enable detekt rule `ThrowingExceptionsWithoutMessageOrCause` and fix existing issues.
1 year ago
Benoit Marty
73347deaaf
Enable detekt rule `UseCheckOrError` and fix existing issues (and a potential crash on MapboxMap?).
1 year ago
Benoit Marty
3f372e5804
Enable detekt rule `ImplicitDefaultLocale` and fix existing issue.
1 year ago
Benoit Marty
6aa5239189
Enable detekt rule `PreviewPublic` and fix existing issues.
1 year ago
ganfra
506b473d4d
Small change after PR review
1 year ago
ganfra
e0eea67e7a
Clean PR
1 year ago