Merge pull request #2128 from nextcloud/bugfix/2111/open-wrong-conversation

Use unique request code to create PendingIntent
This commit is contained in:
Marcel Hibbe 2022-06-07 18:33:28 +02:00 committed by GitHub
commit 073a6a1a90
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -292,7 +292,10 @@ public class NotificationWorker extends Worker {
}
}
PendingIntent pendingIntent = PendingIntent.getActivity(context, 0, intent, 0);
// Use unique request code to make sure that a new PendingIntent gets created for each notification
// See https://github.com/nextcloud/talk-android/issues/2111
int requestCode = (int) System.currentTimeMillis();
PendingIntent pendingIntent = PendingIntent.getActivity(context, requestCode, intent, 0);
Uri uri = Uri.parse(signatureVerification.getUserEntity().getBaseUrl());
String baseUrl = uri.getHost();