Skip to content
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

Reduce the number of unnecessary home page reloads #5969

Merged
merged 3 commits into from
Apr 7, 2022

Conversation

Anderas
Copy link
Contributor

@Anderas Anderas commented Apr 4, 2022

Fixes #5619

After a refactor where home sections are represented as enum values it is now easier to compare the changes coming from list sources and more accurately determine whether to reload the entire table view (when sections have changed) versus when to only update individual sections.

Overal this change should lead to fewer unnecessary reloads of the entire home screen.

@Anderas Anderas requested review from a team and gileluard and removed request for a team April 4, 2022 11:03
}
multicastDelegate.invoke { $0.recentsListServiceDidChangeData?(self,
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Seems like we have been doing 2 updates when only one was necessary

@github-actions
Copy link

github-actions bot commented Apr 4, 2022

📱 Scan the QR code below to install the build for this PR.
🔒 This build is for internal testing purpose. Only devices listed in the ad-hoc provisioning profile can install Element Alpha.

QR code

If you can't scan the QR code you can install the build via this link: https://i.diawi.com/EKH8Az

Copy link
Contributor

@gileluard gileluard left a comment

Choose a reason for hiding this comment

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

LGTM. Please apply the 2 suggested changes to be compliant with the syntax for objective-c files.

}
} else {
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
} else {
}
else
{

}
} else if (!changes) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
} else if (!changes) {
}
else if (!changes)
{

Base automatically changed from andy/sections_refactor to develop April 7, 2022 09:43
@Anderas Anderas merged commit 97a35f7 into develop Apr 7, 2022
@Anderas Anderas deleted the andy/5619_home_reloads branch April 7, 2022 10:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Home Screen Room List Updates
2 participants