We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The following extension functions,
(Mutable)�RawContact.refresh DataEntity.rawContact BlankRawContact.toRawContact
could return the incorrect RawContact if the RawContact belongs to a Contact that has more than one associated RawContact.
This is due to the following code in RawContactRefresh.kt,
RawContactRefresh.kt
internal fun Contacts.findFirstRawContactWithId(...): RawContact? = if (rawContactId.isProfileId) { profile().query() .find(cancel) ?.rawContacts ?.find { it.id == rawContactId } } else { query() .where(Fields.RawContact.Id equalTo rawContactId) .find(cancel) .firstOrNull() ?.rawContacts ?.firstOrNull() }
Notice ?.rawContacts?.firstOrNull() just returns the first RawContact found instead of filtering for the ID.
?.rawContacts?.firstOrNull()
The text was updated successfully, but these errors were encountered:
1d5e79e
This is a part of v0.1.9 Release Checklist.
Sorry, something went wrong.
vestrel00
No branches or pull requests
The following extension functions,
could return the incorrect RawContact if the RawContact belongs to a Contact that has more than one associated RawContact.
This is due to the following code in
RawContactRefresh.kt
,Notice
?.rawContacts?.firstOrNull()
just returns the first RawContact found instead of filtering for the ID.The text was updated successfully, but these errors were encountered: