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

bruig: Save and read sorted chat lists order #111

Merged
merged 8 commits into from Feb 13, 2023

Conversation

alexlyp
Copy link
Member

@alexlyp alexlyp commented Jan 26, 2023

No description provided.

@alexlyp alexlyp changed the title Save and read sorted chat lists order bruig: Save and read sorted chat lists order Jan 26, 2023
}
if (value.length > 0) {
var splitList = value.split(',');
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

unneeded

Comment on lines +376 to +420
for (int i = 0; i < _gcChats.length; i++) {
var found = false;
for (int j = 0; j < gcSplitList.length; j++) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

this is backwards

you need to first iterate the saved list, to add the chats in sortedGCList in the order they were saved

same for users

@alexlyp alexlyp merged commit 5ed6fe7 into companyzero:master Feb 13, 2023
@alexlyp alexlyp deleted the ayp_save_list_order branch February 13, 2023 16:14
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.

None yet

2 participants