From 7ec535765397253df9f5a106bcb14f3b50904d76 Mon Sep 17 00:00:00 2001 From: Vitor Pamplona Date: Tue, 31 Mar 2026 09:04:42 -0400 Subject: [PATCH] Lint --- .../service/notifications/EventNotificationConsumer.kt | 4 ++-- .../service/notifications/NotificationUtils.kt | 10 +++++----- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/amethyst/src/main/java/com/vitorpamplona/amethyst/service/notifications/EventNotificationConsumer.kt b/amethyst/src/main/java/com/vitorpamplona/amethyst/service/notifications/EventNotificationConsumer.kt index dc71af1ac..970f5e80d 100644 --- a/amethyst/src/main/java/com/vitorpamplona/amethyst/service/notifications/EventNotificationConsumer.kt +++ b/amethyst/src/main/java/com/vitorpamplona/amethyst/service/notifications/EventNotificationConsumer.kt @@ -125,7 +125,7 @@ class EventNotificationConsumer( is ChatMessageEncryptedFileHeaderEvent -> { notify(innerEvent, account) } - + is ReactionEvent -> { notify(innerEvent, account) } @@ -581,7 +581,7 @@ class EventNotificationConsumer( applicationContext, ) } - + private suspend fun notifyChessEvent( event: BaseChessEvent, account: Account, diff --git a/amethyst/src/main/java/com/vitorpamplona/amethyst/service/notifications/NotificationUtils.kt b/amethyst/src/main/java/com/vitorpamplona/amethyst/service/notifications/NotificationUtils.kt index 80ddfffaf..6de0f84e7 100644 --- a/amethyst/src/main/java/com/vitorpamplona/amethyst/service/notifications/NotificationUtils.kt +++ b/amethyst/src/main/java/com/vitorpamplona/amethyst/service/notifications/NotificationUtils.kt @@ -119,15 +119,15 @@ object NotificationUtils { description = stringRes(applicationContext, R.string.app_notification_reactions_channel_description) } - + val notificationManager: NotificationManager = applicationContext.getSystemService(Context.NOTIFICATION_SERVICE) as NotificationManager - + notificationManager.createNotificationChannel(reactionChannel!!) return reactionChannel!! } - + fun getOrCreateChessChannel(applicationContext: Context): NotificationChannel { if (chessChannel != null) return chessChannel!! @@ -148,7 +148,7 @@ object NotificationUtils { return chessChannel!! } - + suspend fun NotificationManager.sendChessNotification( id: String, messageBody: String, @@ -176,7 +176,7 @@ object NotificationUtils { applicationContext = applicationContext, ) } - + suspend fun NotificationManager.sendChessNotification( id: String, messageBody: String,