-
Notifications
You must be signed in to change notification settings - Fork 120
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
Render state items in the timeline and as the last message on the home screen. #473
Conversation
# Conflicts: # ElementX/Sources/Services/Timeline/TimelineItems/RoomTimelineItemFactory.swift
self.userID = userID | ||
self.mediaProvider = mediaProvider | ||
self.attributedStringBuilder = attributedStringBuilder | ||
self.roomStateStringBuilder = roomStateStringBuilder | ||
} | ||
|
||
// swiftlint:disable:next cyclomatic_complexity | ||
func buildTimelineItemFor(eventItemProxy: EventTimelineItemProxy, |
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.
⚠️ Function body should span 40 lines or less excluding comments and whitespace: currently spans 43 lines (function_body_length
)
Generated by 🚫 Danger Swift against 80bb331 |
a9f98c6
to
ed3ce7d
Compare
ed3ce7d
to
d3f5bc1
Compare
Codecov ReportBase: 42.50% // Head: 41.62% // Decreases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## develop #473 +/- ##
===========================================
- Coverage 42.50% 41.62% -0.88%
===========================================
Files 271 275 +4
Lines 15180 15500 +320
Branches 9631 9880 +249
===========================================
Hits 6452 6452
- Misses 8495 8793 +298
- Partials 233 255 +22
Flags with carried forward coverage won't be shown. Click here to find out more.
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
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.
This is great, very nicely done! 👏
This PR makes the following changes:
RoomStateStringBuilder
which will build the right localised strings for state changes.RoomEventStringBuilder
which will build a localised string for showing events as attributed strings in the room list. This allows us to handle all event types and usesRoomStateStringBuilder
for state events.