From 7e4460b4eaeb4ca8f91d0d10d1bb1347b0d96123 Mon Sep 17 00:00:00 2001 From: akwizgran Date: Thu, 19 Nov 2020 13:29:57 +0000 Subject: [PATCH] Fix comments in PrivateMessageValidator. --- .../briar/messaging/PrivateMessageValidator.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/briar-core/src/main/java/org/briarproject/briar/messaging/PrivateMessageValidator.java b/briar-core/src/main/java/org/briarproject/briar/messaging/PrivateMessageValidator.java index 5597190b5..5959c74c1 100644 --- a/briar-core/src/main/java/org/briarproject/briar/messaging/PrivateMessageValidator.java +++ b/briar-core/src/main/java/org/briarproject/briar/messaging/PrivateMessageValidator.java @@ -103,7 +103,7 @@ class PrivateMessageValidator implements MessageValidator { private BdfMessageContext validateLegacyPrivateMessage(Message m, BdfList body) throws FormatException { - // Private message text + // Client version 0.0: Private message text checkSize(body, 1); String text = body.getString(0); checkLength(text, 0, MAX_PRIVATE_MESSAGE_TEXT_LENGTH); @@ -117,9 +117,9 @@ class PrivateMessageValidator implements MessageValidator { private BdfMessageContext validatePrivateMessage(Message m, BdfList body) throws FormatException { - // Version 0.1: Message type, optional private message text, - // attachment headers. - // Version 0.2: Message type, optional private message text, + // Client version 0.1 to 0.2: Message type, optional private message + // text, attachment headers. + // Client version 0.3: Message type, optional private message text, // attachment headers, optional auto-delete timer. checkSize(body, 3, 4); String text = body.getOptionalString(1);