forked from upstream-mirrors/quik
@@ -248,7 +248,7 @@ class ComposeViewModel @Inject constructor(
|
|||||||
conversationRepo.getRecipients()
|
conversationRepo.getRecipients()
|
||||||
.asSequence()
|
.asSequence()
|
||||||
.filter { recipient -> recipient.contact?.lookupKey == lookupKey }
|
.filter { recipient -> recipient.contact?.lookupKey == lookupKey }
|
||||||
.first { recipient -> phoneNumberUtils.compare(recipient.address, address) }
|
.firstOrNull { recipient -> phoneNumberUtils.compare(recipient.address, address) }
|
||||||
?: Recipient(
|
?: Recipient(
|
||||||
address = address,
|
address = address,
|
||||||
contact = lookupKey?.let(contactRepo::getUnmanagedContact))
|
contact = lookupKey?.let(contactRepo::getUnmanagedContact))
|
||||||
|
|||||||
Reference in New Issue
Block a user