mirror of
https://github.com/signalapp/Signal-Android.git
synced 2025-12-24 04:58:45 +00:00
Fix linked device inactive filtering.
This commit is contained in:
@@ -69,6 +69,7 @@ class LinkedDeviceInactiveCheckJob private constructor(
|
||||
|
||||
val devices = try {
|
||||
AppDependencies.signalServiceAccountManager.devices
|
||||
.filter { it.id != SignalServiceAddress.DEFAULT_DEVICE_ID }
|
||||
} catch (e: IOException) {
|
||||
return Result.retry(defaultBackoff())
|
||||
}
|
||||
@@ -84,7 +85,6 @@ class LinkedDeviceInactiveCheckJob private constructor(
|
||||
}
|
||||
|
||||
val leastActiveDevice: LeastActiveLinkedDevice? = devices
|
||||
.filter { it.id != SignalServiceAddress.DEFAULT_DEVICE_ID }
|
||||
.filter { it.name != null }
|
||||
.minByOrNull { it.lastSeen }
|
||||
?.let {
|
||||
|
||||
Reference in New Issue
Block a user