From e7eb0ec2b3226f8f3d075229a2ce5b660672526a Mon Sep 17 00:00:00 2001 From: Moxie Marlinspike Date: Sat, 7 Mar 2015 09:02:59 -0800 Subject: [PATCH] Fix for missing messages bug Fixes #2609 // FREEBIE --- src/org/thoughtcrime/securesms/jobs/GcmRefreshJob.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/org/thoughtcrime/securesms/jobs/GcmRefreshJob.java b/src/org/thoughtcrime/securesms/jobs/GcmRefreshJob.java index 25b10041e4..a53446cd41 100644 --- a/src/org/thoughtcrime/securesms/jobs/GcmRefreshJob.java +++ b/src/org/thoughtcrime/securesms/jobs/GcmRefreshJob.java @@ -66,6 +66,7 @@ public class GcmRefreshJob extends ContextJob { String gcmId = GoogleCloudMessaging.getInstance(context).register(REGISTRATION_ID); accountManager.setGcmId(Optional.of(gcmId)); TextSecurePreferences.setGcmRegistrationId(context, gcmId); + TextSecurePreferences.setWebsocketRegistered(context, true); } } }