Skip slow deviceheuristics for linked devices.

This commit is contained in:
Alex Hart
2026-05-08 12:49:11 -03:00
committed by Michelle Tang
parent 0dacc4e8dc
commit 45da9fbfc0
@@ -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()
) {