1
0
mirror of https://gitlab.com/comunic/comunicapiv3 synced 2025-09-25 22:29:45 +00:00

Define a max length for conversations name

This commit is contained in:
2021-04-06 16:40:00 +02:00
parent 6365e2d2b3
commit d53f0aae7b
2 changed files with 6 additions and 1 deletions

View File

@@ -166,6 +166,9 @@ pub const MIN_SUPPORTED_MOBILE_VERSION: &str = "1.1.2";
/// Conversations constants
pub mod conversations {
/// Conversation name
pub const MAX_CONVERSATION_NAME_LENGTH: usize = 20;
/// Minimum message length
pub const MIN_CONVERSATION_MESSAGE_LENGTH: usize = 1;
pub const MAX_CONVERSATION_MESSAGE_LENGTH: usize = 16000;