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

Commit 48a0803b authored by Moez Bhatti's avatar Moez Bhatti
Browse files

Fix incorrect handling of shared text with commas

parent 2bce0126
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -67,8 +67,7 @@ class ComposeActivityModule {
                ?: activity.intent.extras?.getString("sms_body")
                ?: activity.intent?.decodedDataString()
                        ?.substringAfter('?') // Query string
                        ?.split(',')
                        ?.firstOrNull { param -> param.startsWith("body") }
                        ?.takeIf { it.startsWith("body") }
                        ?.substringAfter('=')
                ?: "")
    }