mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-14 03:39:05 +01:00
Display expiration date on outgoing remote wipe message notification
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
package org.briarproject.briar.remotewipe;
|
||||
package org.briarproject.briar.api.remotewipe;
|
||||
|
||||
public interface RemoteWipeConstants {
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user