show existing event attendee photos, if available
This commit is contained in:
parent
1ac25c4dad
commit
eda6c792b7
1 changed files with 6 additions and 1 deletions
|
@ -1149,7 +1149,12 @@ class EventActivity : SimpleActivity() {
|
|||
|
||||
private fun updateAttendees() {
|
||||
mAttendees.forEach {
|
||||
addAttendee(it)
|
||||
val attendee = it
|
||||
val deviceContact = mAvailableContacts.firstOrNull { it.email.isNotEmpty() && it.email == attendee.email && it.photoUri.isNotEmpty() }
|
||||
if (deviceContact != null) {
|
||||
attendee.photoUri = deviceContact.photoUri
|
||||
}
|
||||
addAttendee(attendee)
|
||||
}
|
||||
addAttendee()
|
||||
|
||||
|
|
Loading…
Reference in a new issue