Change : add tombstoned room decoration #4891
Conversation
…ace CompositeAvatar
|
📱 Scan the QR code below to install the build (arm64 only) for this PR. |
bmarty
left a comment
There was a problem hiding this comment.
Nice work thanks!
I believe that the preview must be recorded. I'll check the result, but please add a preview for TombstonedRoomAvatar first.
Thanks!
| import io.element.android.compound.theme.ElementTheme | ||
|
|
||
| @Composable | ||
| fun TombstonedRoomAvatar( |
There was a problem hiding this comment.
Maybe add a Preview for this specific avatar?
|
Actually screenshots can't be recorded because AvatarClusterPreview is failing if the number of avatars is not in [1,4]. I let you fix that. Thanks! |
86ba74a to
2a865e6
Compare
There was a problem hiding this comment.
R became a A, not sure why, but maybe not a problem (?)
There was a problem hiding this comment.
Because RoomAvatar was null before, not possible anymore. So no problem here 👍
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #4891 +/- ##
===========================================
+ Coverage 80.29% 80.31% +0.01%
===========================================
Files 2152 2155 +3
Lines 57177 57236 +59
Branches 7199 7206 +7
===========================================
+ Hits 45913 45968 +55
Misses 8821 8821
- Partials 2443 2447 +4 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|



Content
Follow-up of #4862
Makes sure we are using the correct decoration for tombstoned room :
There are some additional refactoring around Avatar (you can check the commit history) :
AvatarClusternow replaces part of the CompositeAvatarRoomAvatarmakes sure to render a room avatar according to the following params :Also now we use a
StateFlow<RoomInfo>, we always have a value, so we don't need to useAsyncDataforroomNameandavatarData.Motivation and context
Continuation for #4809
Figma
Screenshots / GIFs
See recorded screenshots.
Tests
Tested devices
Checklist