Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 00b791a9 authored by Moez Bhatti's avatar Moez Bhatti Committed by Dayona Joseph
Browse files

Fix crash when starting new conversation

Fixes #1555
parent b12440e2
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -254,7 +254,7 @@ class ComposeViewModel @Inject constructor(
                        conversationRepo.getRecipients()
                                .asSequence()
                                .filter { recipient -> recipient.contact?.lookupKey == lookupKey }
                                .first { recipient -> phoneNumberUtils.compare(recipient.address, address) }
                                .firstOrNull { recipient -> phoneNumberUtils.compare(recipient.address, address) }
                                ?: Recipient(
                                        address = address,
                                        contact = lookupKey?.let(contactRepo::getUnmanagedContact))