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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user