Temporarily disable synchronization messages

Until desktop catches up

// FREEBIE
This commit is contained in:
Moxie Marlinspike 2017-06-12 09:47:58 -07:00
parent 59d3e666fe
commit 1eccc07673
2 changed files with 15 additions and 15 deletions

View File

@ -71,18 +71,18 @@ public class MultiDeviceVerifiedUpdateJob extends ContextJob implements Injectab
@Override @Override
public void onRun() throws IOException, UntrustedIdentityException { public void onRun() throws IOException, UntrustedIdentityException {
try { // try {
if (!TextSecurePreferences.isMultiDevice(context)) { // if (!TextSecurePreferences.isMultiDevice(context)) {
Log.w(TAG, "Not multi device..."); // Log.w(TAG, "Not multi device...");
return; // return;
} // }
//
if (destination != null) sendSpecificUpdate(destination, identityKey, verifiedStatus); // if (destination != null) sendSpecificUpdate(destination, identityKey, verifiedStatus);
else sendFullUpdate(); // else sendFullUpdate();
//
} catch (InvalidNumberException | InvalidKeyException e) { // } catch (InvalidNumberException | InvalidKeyException e) {
throw new IOException(e); // throw new IOException(e);
} // }
} }
private void sendSpecificUpdate(String destination, byte[] identityKey, VerifiedStatus verifiedStatus) private void sendSpecificUpdate(String destination, byte[] identityKey, VerifiedStatus verifiedStatus)

View File

@ -394,9 +394,9 @@ public class PushDecryptJob extends ContextJob {
private void handleSynchronizeVerifiedMessage(@NonNull MasterSecretUnion masterSecret, private void handleSynchronizeVerifiedMessage(@NonNull MasterSecretUnion masterSecret,
@NonNull List<VerifiedMessage> verifiedMessages) @NonNull List<VerifiedMessage> verifiedMessages)
{ {
for (VerifiedMessage verifiedMessage : verifiedMessages) { // for (VerifiedMessage verifiedMessage : verifiedMessages) {
IdentityUtil.processVerifiedMessage(context, masterSecret, verifiedMessage); // IdentityUtil.processVerifiedMessage(context, masterSecret, verifiedMessage);
} // }
} }
private void handleSynchronizeSentMessage(@NonNull MasterSecretUnion masterSecret, private void handleSynchronizeSentMessage(@NonNull MasterSecretUnion masterSecret,