Merge pull request #272 from Aga-C/fix-mark-as-read-notification

Fixed disabled mark as read in notification
This commit is contained in:
Tibor Kaputa 2022-01-19 15:43:27 +01:00 committed by GitHub
commit 76e8381080
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -717,7 +717,7 @@ fun Context.showMessageNotification(address: String, body: String, threadId: Lon
putExtra(THREAD_ID, threadId)
}
val markAsReadPendingIntent = PendingIntent.getBroadcast(this, 0, markAsReadIntent, PendingIntent.FLAG_CANCEL_CURRENT)
val markAsReadPendingIntent = PendingIntent.getBroadcast(this, threadId.hashCode(), markAsReadIntent, PendingIntent.FLAG_UPDATE_CURRENT)
var replyAction: NotificationCompat.Action? = null
if (isNougatPlus()) {