Skip to content
Snippets Groups Projects
Commit 1741ed5f authored by Sylvain Berfini's avatar Sylvain Berfini :cow:
Browse files

Fixed clicking message notification not going into conversation

parent 56d8e647
Branches
Tags
1 merge request!1393Linphone 6.0.0
......@@ -1405,6 +1405,7 @@ class NotificationsManager @MainThread constructor(private val context: Context)
return TaskStackBuilder.create(context).run {
addNextIntentWithParentStack(
Intent(context, MainActivity::class.java).apply {
setAction(Intent.ACTION_MAIN) // Needed as well
putExtras(args) // Need to pass args here for Chat extra
}
)
......
......@@ -432,9 +432,9 @@ class MainActivity : GenericActivity() {
Log.i(
"$TAG Handling intent action [${intent.action}], type [${intent.type}], data [${intent.data}] and has ${if (hasExtra) "extras" else "no extra"}"
)
if (intent.action == null) return
when (intent.action) {
val action = intent.action ?: return
when (action) {
Intent.ACTION_SEND -> {
handleSendIntent(intent, false)
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment