This commit is contained in:
Vitor Pamplona
2026-03-31 09:04:42 -04:00
parent 96a2645070
commit 7ec5357653
2 changed files with 7 additions and 7 deletions
@@ -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,
@@ -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,