From 924d78f3c70fcce5cd8aa2effce3eed3a9eba760 Mon Sep 17 00:00:00 2001 From: Jorge Martin Espinosa Date: Tue, 25 Jun 2024 10:36:29 +0200 Subject: [PATCH] Replace the 'answer' PendingIntent in ringing call notifications (#3093) * Replace the 'answer' PendingIntent in ringing call notifications Co-authored-by: Benoit Marty --------- Co-authored-by: Benoit Marty --- changelog.d/3085.bugfix | 1 + .../element/android/features/call/impl/utils/IntentProvider.kt | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 changelog.d/3085.bugfix diff --git a/changelog.d/3085.bugfix b/changelog.d/3085.bugfix new file mode 100644 index 0000000000..bfad218bd2 --- /dev/null +++ b/changelog.d/3085.bugfix @@ -0,0 +1 @@ +Make sure we replace the 'answer call' pending intent on ringing call notifications. diff --git a/features/call/impl/src/main/kotlin/io/element/android/features/call/impl/utils/IntentProvider.kt b/features/call/impl/src/main/kotlin/io/element/android/features/call/impl/utils/IntentProvider.kt index bc5816220a..be4d123836 100644 --- a/features/call/impl/src/main/kotlin/io/element/android/features/call/impl/utils/IntentProvider.kt +++ b/features/call/impl/src/main/kotlin/io/element/android/features/call/impl/utils/IntentProvider.kt @@ -35,7 +35,7 @@ internal object IntentProvider { context, DefaultElementCallEntryPoint.REQUEST_CODE, createIntent(context, callType), - 0, + PendingIntent.FLAG_CANCEL_CURRENT, false )!! }