diff --git a/briar-core/src/main/java/org/briarproject/briar/remotewipe/RemoteWipeConstants.java b/briar-core/src/main/java/org/briarproject/briar/remotewipe/RemoteWipeConstants.java index f6b38302e..2d4a5388c 100644 --- a/briar-core/src/main/java/org/briarproject/briar/remotewipe/RemoteWipeConstants.java +++ b/briar-core/src/main/java/org/briarproject/briar/remotewipe/RemoteWipeConstants.java @@ -1,13 +1,16 @@ package org.briarproject.briar.remotewipe; public interface RemoteWipeConstants { - // Group metadata keys - String GROUP_KEY_CONTACT_ID = "contactId"; - String GROUP_KEY_WIPERS = "wipers"; - String GROUP_KEY_RECEIVED_WIPE = "receivedWipe"; - // Message metadata keys - String MSG_KEY_TIMESTAMP = "timestamp"; - String MSG_KEY_MESSAGE_TYPE = "messageType"; - String MSG_KEY_LOCAL = "local"; + int THRESHOLD = 2; + + // Group metadata keys + String GROUP_KEY_CONTACT_ID = "contactId"; + String GROUP_KEY_WIPERS = "wipers"; + String GROUP_KEY_RECEIVED_WIPE = "receivedWipe"; + + // Message metadata keys + String MSG_KEY_TIMESTAMP = "timestamp"; + String MSG_KEY_MESSAGE_TYPE = "messageType"; + String MSG_KEY_LOCAL = "local"; } diff --git a/briar-core/src/main/java/org/briarproject/briar/remotewipe/RemoteWipeManagerImpl.java b/briar-core/src/main/java/org/briarproject/briar/remotewipe/RemoteWipeManagerImpl.java index 67d01f3f0..7a5ed59a7 100644 --- a/briar-core/src/main/java/org/briarproject/briar/remotewipe/RemoteWipeManagerImpl.java +++ b/briar-core/src/main/java/org/briarproject/briar/remotewipe/RemoteWipeManagerImpl.java @@ -51,6 +51,7 @@ import static org.briarproject.briar.remotewipe.RemoteWipeConstants.GROUP_KEY_WI import static org.briarproject.briar.remotewipe.RemoteWipeConstants.MSG_KEY_LOCAL; import static org.briarproject.briar.remotewipe.RemoteWipeConstants.MSG_KEY_MESSAGE_TYPE; import static org.briarproject.briar.remotewipe.RemoteWipeConstants.MSG_KEY_TIMESTAMP; +import static org.briarproject.briar.remotewipe.RemoteWipeConstants.THRESHOLD; public class RemoteWipeManagerImpl extends ConversationClientImpl implements RemoteWipeManager, ContactManager.ContactHook, @@ -63,7 +64,6 @@ public class RemoteWipeManagerImpl extends ConversationClientImpl private final ContactManager contactManager; private final MessageEncoder messageEncoder; private final MessageParser messageParser; - private static int THRESHOLD = 2; // TODO @Inject protected RemoteWipeManagerImpl(