Skip to content

Commit 76e8381

Browse files
authored
Merge pull request #272 from Aga-C/fix-mark-as-read-notification
Fixed disabled mark as read in notification
2 parents 7905040 + fdd7538 commit 76e8381

File tree

1 file changed

+1
-1
lines changed
  • app/src/main/kotlin/com/simplemobiletools/smsmessenger/extensions

1 file changed

+1
-1
lines changed

app/src/main/kotlin/com/simplemobiletools/smsmessenger/extensions/Context.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -717,7 +717,7 @@ fun Context.showMessageNotification(address: String, body: String, threadId: Lon
717717
putExtra(THREAD_ID, threadId)
718718
}
719719

720-
val markAsReadPendingIntent = PendingIntent.getBroadcast(this, 0, markAsReadIntent, PendingIntent.FLAG_CANCEL_CURRENT)
720+
val markAsReadPendingIntent = PendingIntent.getBroadcast(this, threadId.hashCode(), markAsReadIntent, PendingIntent.FLAG_UPDATE_CURRENT)
721721
var replyAction: NotificationCompat.Action? = null
722722

723723
if (isNougatPlus()) {

0 commit comments

Comments
 (0)