Display expiration date on outgoing remote wipe message notification

This commit is contained in:
ameba23
2021-06-03 09:37:15 +02:00
parent ab136d3167
commit 2177036044
5 changed files with 25 additions and 15 deletions

View File

@@ -1,4 +1,4 @@
package org.briarproject.briar.remotewipe;
package org.briarproject.briar.api.remotewipe;
public interface RemoteWipeConstants {

View File

@@ -34,6 +34,10 @@ public class RemoteWipeMessageHeader extends ConversationMessageHeader {
return type;
}
public long getMessageExpiry() {
return (getTimestamp() + RemoteWipeConstants.MAX_MESSAGE_AGE);
}
@Override
public <T> T accept(ConversationMessageVisitor<T> v) {
return v.visitRemoteWipeMessage(this);