mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-12 02:39:05 +01:00
Add an additional message type for revoking remote wipe status
This commit is contained in:
@@ -3,5 +3,7 @@ package org.briarproject.briar.api.remotewipe;
|
||||
public interface MessageEncoder {
|
||||
byte[] encodeSetupMessage();
|
||||
|
||||
byte[] encodeRevokeMessage();
|
||||
|
||||
byte[] encodeWipeMessage();
|
||||
}
|
||||
|
||||
@@ -9,7 +9,7 @@ import javax.annotation.concurrent.Immutable;
|
||||
@NotNullByDefault
|
||||
public enum MessageType {
|
||||
|
||||
SETUP(0), WIPE(1);
|
||||
SETUP(0), WIPE(1), REVOKE(2);
|
||||
|
||||
private final int value;
|
||||
|
||||
|
||||
@@ -9,6 +9,7 @@ public interface RemoteWipeConstants {
|
||||
String GROUP_KEY_CONTACT_ID = "contactId";
|
||||
String GROUP_KEY_WIPERS = "wipers";
|
||||
String GROUP_KEY_RECEIVED_WIPE = "receivedWipe";
|
||||
String GROUP_KEY_AM_WIPER = "amWiper";
|
||||
|
||||
// Message metadata keys
|
||||
String MSG_KEY_TIMESTAMP = "timestamp";
|
||||
|
||||
Reference in New Issue
Block a user