forge
Explore
Log in

Don't you dare go Hollow

Allow non-ascii message bodies

Browse files at this commit

bab71a3a5fafbd7eb25acb11c058c8b1cd0ba8a0Ahmet Kaan GümüşParent: 7af5e52
  • feat
    • allow non-ascii message bodies
Show full message
✨ feat(common): allow non-ascii message bodies
crates/common/src/validate.rsmodified+0 -4
@@ -24,10 +24,6 @@ pub fn validate_username(username: &str) -> Result<(), UserError> {
2424 }
2525
2626 pub fn validate_message_body(message: &str) -> Result<(), MessageError> {
27- if !message.is_ascii() {
28- return Err(MessageError::ASCII);
29- }
30-
3127 if message.len() < MINIMUM_MESSAGE_LENGTH {
3228 return Err(MessageError::MinimumLength(message.len()));
3329 }