-
Notifications
You must be signed in to change notification settings - Fork 178
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merge TimelineItemEventRow's textForInReplyTo and attachmentThumbnailInfoForInReplyTo functions #1859
Conversation
02377c1
to
df92530
Compare
df92530
to
1436208
Compare
📱 Scan the QR code below to install the build (arm64 only) for this PR. |
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## develop #1859 +/- ##
===========================================
+ Coverage 66.44% 66.48% +0.03%
===========================================
Files 1308 1308
Lines 33059 33055 -4
Branches 7087 7083 -4
===========================================
+ Hits 21966 21976 +10
+ Misses 7733 7724 -9
+ Partials 3360 3355 -5 ☔ View full report in Codecov by Sentry. |
1436208
to
859b1f5
Compare
TimelineItemEventRow.textForInReplyTo(inReplyTo: InReplyTo.Ready): String
functionf570640
to
b8bb431
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, with a comment.
is PollContent -> eventContent.question | ||
else -> "" | ||
} | ||
private sealed interface InReplyToMetadata { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't really know if it actually makes a difference, but using @Immutable
with sealed interfaces should help in avoiding unnecessary recompositions, since otherwise the compose compiler doesn't know how to treat the interface AFAIK.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should I add it to the sealed interface or to its subclasses?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To the sealed interface
.
Could we also add some mapping tests for |
3dc4f94
to
3f0c431
Compare
All done! Might wanna take another look as the tests ended up being quite verbose. |
…InfoForInReplyTo functions The flow is somewhat misleading so its logic has been merged into `InReplyToDetails.metadata()`.
2f622f3
to
d32bc5c
Compare
Kudos, SonarCloud Quality Gate passed! |
The flow is somewhat misleading so its logic has been merged into
InReplyToDetails.metadata()
.