Use extension function

This commit is contained in:
Naveen 2024-01-17 18:20:20 +05:30
parent 18ce6557f7
commit 9e9eebc5ff
No known key found for this signature in database
GPG key ID: 0E155DAD31671DA3

View file

@ -694,7 +694,6 @@ fun Context.deleteConversation(threadId: Long) {
if (config.customNotifications.contains(threadId.toString()) && isOreoPlus()) { if (config.customNotifications.contains(threadId.toString()) && isOreoPlus()) {
config.removeCustomNotificationsByThreadId(threadId) config.removeCustomNotificationsByThreadId(threadId)
val notificationManager = getSystemService(Context.NOTIFICATION_SERVICE) as NotificationManager
notificationManager.deleteNotificationChannel(threadId.hashCode().toString()) notificationManager.deleteNotificationChannel(threadId.hashCode().toString())
} }
} }