mirror of
https://github.com/signalapp/Signal-Server
synced 2026-04-25 19:30:02 +01:00
Timestamp comparison should be the other way.
// FREEBIE
This commit is contained in:
@@ -73,7 +73,7 @@ public class FeedbackHandler implements Managed, Runnable {
|
||||
if (event.getRegistrationId().equals(device.get().getGcmId())) {
|
||||
logger.warn("GCM Unregister GCM ID matches!");
|
||||
if (device.get().getPushTimestamp() == 0 ||
|
||||
event.getTimestamp() < device.get().getPushTimestamp())
|
||||
event.getTimestamp() > device.get().getPushTimestamp())
|
||||
{
|
||||
logger.warn("GCM Unregister Timestamp matches!");
|
||||
device.get().setGcmId(null);
|
||||
@@ -96,7 +96,7 @@ public class FeedbackHandler implements Managed, Runnable {
|
||||
if (event.getRegistrationId().equals(device.get().getApnId())) {
|
||||
logger.warn("APN Unregister APN ID matches!");
|
||||
if (device.get().getPushTimestamp() == 0 ||
|
||||
event.getTimestamp() < device.get().getPushTimestamp())
|
||||
event.getTimestamp() > device.get().getPushTimestamp())
|
||||
{
|
||||
logger.warn("APN Unregister timestamp matches!");
|
||||
device.get().setApnId(null);
|
||||
|
||||
Reference in New Issue
Block a user