diff --git a/presentation/src/main/java/com/moez/QKSMS/feature/compose/ComposeViewModel.kt b/presentation/src/main/java/com/moez/QKSMS/feature/compose/ComposeViewModel.kt index f391d8ed7..51dea9846 100644 --- a/presentation/src/main/java/com/moez/QKSMS/feature/compose/ComposeViewModel.kt +++ b/presentation/src/main/java/com/moez/QKSMS/feature/compose/ComposeViewModel.kt @@ -298,7 +298,7 @@ class ComposeViewModel @Inject constructor( view.optionsItemIntent .filter { it == R.id.call } .withLatestFrom(conversation) { _, conversation -> conversation } - .mapNotNull { conversation -> conversation.recipients[0] } + .mapNotNull { conversation -> conversation.recipients.firstOrNull() } .map { recipient -> recipient.address } .autoDisposable(view.scope()) .subscribe { address -> navigator.makePhoneCall(address) }