diff --git a/app/src/main/java/com/geeksville/mesh/service/MeshServiceNotifications.kt b/app/src/main/java/com/geeksville/mesh/service/MeshServiceNotifications.kt index 250324fa2..4929847a9 100644 --- a/app/src/main/java/com/geeksville/mesh/service/MeshServiceNotifications.kt +++ b/app/src/main/java/com/geeksville/mesh/service/MeshServiceNotifications.kt @@ -189,12 +189,10 @@ class MeshServiceNotifications( ) } - private fun openMessageIntent(contactKey: String? = null): PendingIntent { + private fun openMessageIntent(contactKey: String): PendingIntent { val intent = Intent(context, MainActivity::class.java) intent.action = OPEN_MESSAGE_ACTION - contactKey?.let { - intent.putExtra(OPEN_MESSAGE_EXTRA_CONTACT_KEY, it) - } + intent.putExtra(OPEN_MESSAGE_EXTRA_CONTACT_KEY, contactKey) val pendingIntent = PendingIntent.getActivity( context, 0,