mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-13 19:29:06 +01:00
When replying to a message, don't use an earlier timestamp.
This produces a saner user experience when devices have differing clocks.
This commit is contained in:
@@ -10,15 +10,17 @@ public interface MessageFactory {
|
||||
|
||||
/** Creates a private message. */
|
||||
Message createPrivateMessage(MessageId parent, String contentType,
|
||||
byte[] body) throws IOException, GeneralSecurityException;
|
||||
long timestamp, byte[] body) throws IOException,
|
||||
GeneralSecurityException;
|
||||
|
||||
/** Creates an anonymous group message. */
|
||||
Message createAnonymousMessage(MessageId parent, Group group,
|
||||
String contentType, byte[] body) throws IOException,
|
||||
String contentType, long timestamp, byte[] body) throws IOException,
|
||||
GeneralSecurityException;
|
||||
|
||||
/** Creates a pseudonymous group message. */
|
||||
Message createPseudonymousMessage(MessageId parent, Group group,
|
||||
Author author, PrivateKey privateKey, String contentType,
|
||||
byte[] body) throws IOException, GeneralSecurityException;
|
||||
long timestamp, byte[] body) throws IOException,
|
||||
GeneralSecurityException;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user