Skip to content
This repository was archived by the owner on Jun 7, 2020. It is now read-only.

Conversation

@rafaelks
Copy link
Contributor

@rafaelks rafaelks commented Nov 7, 2018

@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:

  • Removed all managed objects from AvatarView;
  • Reduced the complexity of AvatarView to rely only in one String and one URL object;
  • Prepare another page from database after loading one page from scrolling to the top and present it;
  • Changed the size of the page to 10 on scrolling and 30 on first page and pre-fetched page;
  • Changed the method being used to start pagination to scrollView delegate instead of UICollectionView method (willDisplay:);

@rafaelks rafaelks added this to the 3.2.0 milestone Nov 7, 2018
}
}

strongSelf.dataUpdateDelegate?.didUpdateChatData(newData: newSections, updatedItems: updatedItems)

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 {

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

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)

Copy link
Contributor

@filipealva filipealva left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@filipealva filipealva merged commit 85d10c5 into feature/integrate-rc-view-controller Nov 7, 2018
@filipealva filipealva deleted the bug/empty_message_text_sometimes branch November 7, 2018 18:49
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants