mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-05-20 15:20:23 +01:00
Skip slow deviceheuristics for linked devices.
This commit is contained in:
+4
@@ -90,6 +90,10 @@ object SlowNotificationHeuristics {
|
||||
@WorkerThread
|
||||
@JvmStatic
|
||||
fun isHavingDelayedNotifications(): Boolean {
|
||||
if (SignalStore.account.isLinkedDevice) {
|
||||
// Linked devices are expected to be off for long stretches, so the heuristic produces spurious warnings
|
||||
return false
|
||||
}
|
||||
if (!SignalStore.settings.isMessageNotificationsEnabled ||
|
||||
!NotificationChannels.getInstance().areNotificationsEnabled()
|
||||
) {
|
||||
|
||||
Reference in New Issue
Block a user