Lint
This commit is contained in:
+2
-2
@@ -125,7 +125,7 @@ class EventNotificationConsumer(
|
|||||||
is ChatMessageEncryptedFileHeaderEvent -> {
|
is ChatMessageEncryptedFileHeaderEvent -> {
|
||||||
notify(innerEvent, account)
|
notify(innerEvent, account)
|
||||||
}
|
}
|
||||||
|
|
||||||
is ReactionEvent -> {
|
is ReactionEvent -> {
|
||||||
notify(innerEvent, account)
|
notify(innerEvent, account)
|
||||||
}
|
}
|
||||||
@@ -581,7 +581,7 @@ class EventNotificationConsumer(
|
|||||||
applicationContext,
|
applicationContext,
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
private suspend fun notifyChessEvent(
|
private suspend fun notifyChessEvent(
|
||||||
event: BaseChessEvent,
|
event: BaseChessEvent,
|
||||||
account: Account,
|
account: Account,
|
||||||
|
|||||||
+5
-5
@@ -119,15 +119,15 @@ object NotificationUtils {
|
|||||||
description =
|
description =
|
||||||
stringRes(applicationContext, R.string.app_notification_reactions_channel_description)
|
stringRes(applicationContext, R.string.app_notification_reactions_channel_description)
|
||||||
}
|
}
|
||||||
|
|
||||||
val notificationManager: NotificationManager =
|
val notificationManager: NotificationManager =
|
||||||
applicationContext.getSystemService(Context.NOTIFICATION_SERVICE) as NotificationManager
|
applicationContext.getSystemService(Context.NOTIFICATION_SERVICE) as NotificationManager
|
||||||
|
|
||||||
notificationManager.createNotificationChannel(reactionChannel!!)
|
notificationManager.createNotificationChannel(reactionChannel!!)
|
||||||
|
|
||||||
return reactionChannel!!
|
return reactionChannel!!
|
||||||
}
|
}
|
||||||
|
|
||||||
fun getOrCreateChessChannel(applicationContext: Context): NotificationChannel {
|
fun getOrCreateChessChannel(applicationContext: Context): NotificationChannel {
|
||||||
if (chessChannel != null) return chessChannel!!
|
if (chessChannel != null) return chessChannel!!
|
||||||
|
|
||||||
@@ -148,7 +148,7 @@ object NotificationUtils {
|
|||||||
|
|
||||||
return chessChannel!!
|
return chessChannel!!
|
||||||
}
|
}
|
||||||
|
|
||||||
suspend fun NotificationManager.sendChessNotification(
|
suspend fun NotificationManager.sendChessNotification(
|
||||||
id: String,
|
id: String,
|
||||||
messageBody: String,
|
messageBody: String,
|
||||||
@@ -176,7 +176,7 @@ object NotificationUtils {
|
|||||||
applicationContext = applicationContext,
|
applicationContext = applicationContext,
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
suspend fun NotificationManager.sendChessNotification(
|
suspend fun NotificationManager.sendChessNotification(
|
||||||
id: String,
|
id: String,
|
||||||
messageBody: String,
|
messageBody: String,
|
||||||
|
|||||||
Reference in New Issue
Block a user