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 )!! }