fix: properly handle "New conversation" shortcut

Refs: https://github.com/FossifyOrg/Messages/issues/416
This commit is contained in:
Jan 2025-12-09 08:30:14 +01:00 committed by GitHub
parent cda1ad130c
commit 988b532581
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 6 additions and 1 deletions

View file

@ -137,7 +137,8 @@ class NewConversationActivity : SimpleActivity() {
private fun isThirdPartyIntent(): Boolean {
val result = SmsIntentParser.parse(intent)
if (result != null) {
if (result != null && (result.first.isNotEmpty() || result.second.isNotEmpty())) {
val (body, recipients) = result
launchThreadActivity(
phoneNumber = URLDecoder.decode(recipients.replace("+", "%2b").trim()),