Fix improper notifications when delaying for linked device activity.

This commit is contained in:
Cody Henthorne
2024-01-03 11:10:16 -05:00
committed by Clark Chen
parent 549ef9dabc
commit 3fa3b93c85
8 changed files with 16 additions and 61 deletions

View File

@@ -206,7 +206,7 @@ object ContactDiscovery {
.forEach { result ->
val hour = Calendar.getInstance()[Calendar.HOUR_OF_DAY]
if (hour in 9..22) {
ApplicationDependencies.getMessageNotifier().updateNotification(context, ConversationId.forConversation(result.threadId), true)
ApplicationDependencies.getMessageNotifier().updateNotification(context, ConversationId.forConversation(result.threadId))
} else {
Log.i(TAG, "Not notifying of a new user due to the time of day. (Hour: $hour)")
}