Update to libtextsecure 1.8.3

Fixes #4549

// FREEBIE
This commit is contained in:
Moxie Marlinspike
2015-11-16 12:03:47 -08:00
parent dd0a952c83
commit 8fc690d8e0
2 changed files with 11 additions and 8 deletions

View File

@@ -10,6 +10,7 @@ import android.util.Log;
import org.thoughtcrime.securesms.service.KeyCachingService;
import org.thoughtcrime.securesms.util.DirectoryHelper;
import org.thoughtcrime.securesms.util.TextSecurePreferences;
import java.io.IOException;
@@ -27,10 +28,12 @@ public class ContactsSyncAdapter extends AbstractThreadedSyncAdapter {
{
Log.w(TAG, "onPerformSync(" + authority +")");
try {
DirectoryHelper.refreshDirectory(getContext(), KeyCachingService.getMasterSecret(getContext()));
} catch (IOException e) {
Log.w(TAG, e);
if (TextSecurePreferences.isPushRegistered(getContext())) {
try {
DirectoryHelper.refreshDirectory(getContext(), KeyCachingService.getMasterSecret(getContext()));
} catch (IOException e) {
Log.w(TAG, e);
}
}
}