Fix parsing forwarded text

This commit is contained in:
Naveen Singh 2025-01-05 11:30:59 +05:30
parent 455588a3b1
commit 9d324b4c0a
No known key found for this signature in database
GPG key ID: AF5D43C216778C0B

View file

@ -301,7 +301,7 @@ class NewConversationActivity : SimpleActivity() {
Intent(this, ThreadActivity::class.java).apply { Intent(this, ThreadActivity::class.java).apply {
putExtra(THREAD_ID, getThreadId(numbers)) putExtra(THREAD_ID, getThreadId(numbers))
putExtra(THREAD_TITLE, name) putExtra(THREAD_TITLE, name)
putExtra(THREAD_TEXT, body) putExtra(THREAD_TEXT, body.ifEmpty { intent.getStringExtra(Intent.EXTRA_TEXT) })
putExtra(THREAD_NUMBER, number) putExtra(THREAD_NUMBER, number)
if (intent.action == Intent.ACTION_SEND && intent.extras?.containsKey(Intent.EXTRA_STREAM) == true) { if (intent.action == Intent.ACTION_SEND && intent.extras?.containsKey(Intent.EXTRA_STREAM) == true) {