Skip to content
Snippets Groups Projects
Verified Commit 09baa2eb authored by Torsten Grote's avatar Torsten Grote
Browse files

Add own constant for maximum group invitation message length

parent 1176741e
No related branches found
No related tags found
No related merge requests found
......@@ -25,7 +25,7 @@ import javax.inject.Inject;
import static android.support.v4.app.ActivityOptionsCompat.makeCustomAnimation;
import static android.widget.Toast.LENGTH_SHORT;
import static org.briarproject.api.privategroup.PrivateGroupConstants.MAX_GROUP_POST_BODY_LENGTH;
import static org.briarproject.api.privategroup.PrivateGroupConstants.MAX_GROUP_INVITATION_MSG_LENGTH;
public class CreateGroupActivity extends ContactSelectorActivity implements
CreateGroupListener, MessageFragmentListener {
......@@ -148,7 +148,7 @@ public class CreateGroupActivity extends ContactSelectorActivity implements
@Override
public int getMaximumMessageLength() {
return MAX_GROUP_POST_BODY_LENGTH;
return MAX_GROUP_INVITATION_MSG_LENGTH;
}
private void openNewGroup() {
......
......@@ -19,4 +19,9 @@ public interface PrivateGroupConstants {
*/
int MAX_GROUP_POST_BODY_LENGTH = MAX_MESSAGE_BODY_LENGTH - 1024;
/**
* The maximum length of a group invitation message in bytes.
*/
int MAX_GROUP_INVITATION_MSG_LENGTH = MAX_MESSAGE_BODY_LENGTH - 1024;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment