-
Notifications
You must be signed in to change notification settings - Fork 437
[IMPROVEMENT] Performance improvements, code simplification & prefetch one more page from database #2279
[IMPROVEMENT] Performance improvements, code simplification & prefetch one more page from database #2279
Conversation
| } | ||
| } | ||
|
|
||
| strongSelf.dataUpdateDelegate?.didUpdateChatData(newData: newSections, updatedItems: updatedItems) |
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.
Line Length Violation: Line should be 120 characters or less: currently 122 characters (line_length)
|
|
||
| if changes.sectionUpdated.contains(sectionIndex) { | ||
| for (itemIndex, item) in changes.elementUpdated.enumerated() { | ||
| if item.section == sectionIndex { |
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.
For Where Violation: where clauses are preferred over a single if inside a for. (for_where)
| UIView.performWithoutAnimation { | ||
| collectionView.reload(using: changeset, interrupt: { $0.changeCount > 100 }) { newData in | ||
| let changeset = StagedChangeset(source: strongSelf.internalData, target: target) | ||
| collectionView.reload(using: changeset, interrupt: { $0.changeCount > 100 }) { newData, changes in |
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.
Multiple Closures with Trailing Closure Violation: Trailing closure syntax should not be used when passing more than one closure argument. (multiple_closures_with_trailing_closure)
…a_from_remote [BUG] Missing data on the list & fixed unit tests
filipealva
left a comment
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.
👍
@RocketChat/ios
This pull-request was suppose to fix the empty cells, but I still didn't figure out what's happening (still investigating, but will send another PR once this is fixed). For now, this one includes: