-
Notifications
You must be signed in to change notification settings - Fork 20
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
[GROOMING-REVIEW] Contact sync v2 #2205
base: main
Are you sure you want to change the base?
Conversation
This PR has been deployed to https://linagora.github.io/twake-on-matrix/2205 |
this.status, | ||
}); | ||
|
||
String? calLookupAddress({required HashDetailsResponse hashDetails}) { |
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.
please separate function calculateHash(HashDetailsResponse hashDetails)
|
Map<String, List<String>> hashToContactIdMappings, | ||
Map<String, Contact> contactIdToHashMap, | ||
) { | ||
for (final contact in chunkContacts) { |
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.
we need 2 duplicated for loop
? L40?
); | ||
} | ||
|
||
Contact? processContacts( |
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.
specific in what kind of process?
Contact? processContacts( | |
Contact? calculateHashForContact( |
Map<String, List<String>> phoneToHashMap, | ||
Map<String, List<String>> emailToHashMap, |
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.
not in use?
final totalChunks = chunks.length; | ||
|
||
yield await _handleLookupMappings( | ||
progress: lookupChunkSize ~/ totalChunks, |
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.
why chunk size / totalChunks
? it is constant number, it is not progress.
|
||
class GetPhonebookContactsSuccess extends Success { | ||
final int progress; | ||
final int chunkSize; |
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.
IMO, we dont need it
16177cb
to
85c4b92
Compare
No description provided.