Fix for missing messages bug

Fixes #2609

// FREEBIE
This commit is contained in:
Moxie Marlinspike 2015-03-07 09:02:59 -08:00
parent da75268545
commit e7eb0ec2b3

View File

@ -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);
}
}
}