Log notification posting exception when encountered.

This commit is contained in:
Cody Henthorne
2024-09-18 17:01:46 -04:00
committed by Greyson Parrelli
parent 1ac19e84c2
commit 46844ced7c

View File

@@ -480,7 +480,7 @@ object NotificationFactory {
notify(notificationId, notification)
Log.internal().i(TAG, "Posted notification: $notification")
} catch (e: SecurityException) {
Log.i(TAG, "Security exception when posting notification, clearing ringtone")
Log.w(TAG, "Security exception when posting notification, clearing ringtone", e)
if (threadRecipient != null) {
SignalExecutors.BOUNDED.execute {
SignalDatabase.recipients.setMessageRingtone(threadRecipient.id, null)