mirror of
https://github.com/signalapp/Signal-Server.git
synced 2026-12-02 18:16:53 +00:00
Update device enabled criteria
// FREEBIE
This commit is contained in:
1 parent
d3023a0068
commit
f9acd6a66b
3 files changed
+5
-5
No files matched your search
@@ -194,7 +194,7 @@ public class Device {
|
||||
public boolean isActive() {
|
||||
boolean hasChannel = fetchesMessages || !Util.isEmpty(getApnId()) || !Util.isEmpty(getGcmId());
|
||||
|
||||
return (id == MASTER_ID && hasChannel) ||
|
||||
return (id == MASTER_ID && hasChannel && signedPreKey != null) ||
|
||||
(id != MASTER_ID && hasChannel && signedPreKey != null && lastSeen > (System.currentTimeMillis() - TimeUnit.DAYS.toMillis(30)));
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user